Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Help 2d level made in photoshop

Discussion in '2D' started by fosmark13, Feb 16, 2015.

  1. fosmark13

    fosmark13

    Joined:
    Feb 16, 2015
    Posts:
    91
    hi !! i´ve been studying unity 2d and i´m developing a 2d platformer game, so my the problem is that i designed a 2d game level using adobe photoshop but i made absolute everything in there (gameplay area, background 1, 2, 3, foreground 1,2,3) so the PSD is about 1.12Gbs and its dimensions are W:61440 x H:4096 exactly so how can i export it to unity to start putting the 2d colliders and putting the background and foreground and of course the gameplay area´cause i noticed that the "Save for web devices" is blocked and even the export option is only for the PSB format and TIFF, so what am i suppose to do?
     
  2. sdviosx

    sdviosx

    Joined:
    Jan 4, 2015
    Posts:
    22
    What is your targeted platform? Those dimensions are pretty big are you making a texture atlas?, anyway you should be able to save a file as a png via save for web unless you are doing something photoshop may not like.
     
  3. fosmark13

    fosmark13

    Joined:
    Feb 16, 2015
    Posts:
    91
    hi thanks for your reply, i know that is big, but it is the entirely level, what i´m doing is that i´m separating all the level in 4096 x 4096 px so in unity can put the highest resolution, but i don,t know if this is a correct way to do it? and i can´t save it as png because it´s to big and i can´t use the slice tool either, so i created a 4096 x4096 px file and grab each area (gameplay area, foreground,background) separate all the level and use the "export layers to files" so i can have 4096 x 4096 px each and import them into unity, but i don´t know if this is a correct way to doit...
     
  4. CodeMonke234

    CodeMonke234

    Joined:
    Oct 13, 2010
    Posts:
    181
    One approach is to export each piece separately - eg divide up your level into logical game objects and export them as small chunks. Unity will recombine these into texture atlas for you that is tightly packed.

    Easiest to keep them as separate layers in PS.
     
    KUFgoddess and fosmark13 like this.
  5. sdviosx

    sdviosx

    Joined:
    Jan 4, 2015
    Posts:
    22
    There is more then one way to do this. You could use Tield to make big levels from small textures, similar to how NES games were made or for example if I was making a platformer on the iPhone 5 (1136 x 640) I would make my background that size and I would split the foreground objects into its own layer(s)and then loop the images varying the speed to make a cool looking parallax effect similar to this game.
     
  6. fosmark13

    fosmark13

    Joined:
    Feb 16, 2015
    Posts:
    91
    yeah but here is the player exploring a big map, and this map is all different, it´s like earthworm jim style or rayman legends so the level is not entirely on screen, only a part and the camera is moving (with the player of course) across the level and now that i drew tall the level in photoshop i want to export it into unity and put the colliders and stuff there, so the only way that i can think about is export it in 4096 x4096, or is there any other way?
     
  7. RIw

    RIw

    Joined:
    Jan 2, 2015
    Posts:
    90
    I think you should use the quick selecton function in photoshop and cut all the objects that will have a colliders.
     
  8. fosmark13

    fosmark13

    Joined:
    Feb 16, 2015
    Posts:
    91
    Hi thanks for your answer i think i made it, but i have a problem, the thing is that i´m doing the sprite sheet of my platforms and some other stuff, i´m doing it in multiple of 4 so they can be compressed, the problem is that when i´m working in photoshop all my images are correctly in multiples of 4 and sliced using the slicing tool but when imported into unity, there are a few that don´t show the correct number of pixels, even when i open the images with the finder it says their correct pixel dimensions, so whats the problem with unity?? or photoshop?? or what!!!! the image is here, you can download it and see it for yourselves, this image and a few more are the ones that unity says they have 341 x1024 so what can i do?
     

    Attached Files: