Platformer question

digitalzerodigitalzero Member, BASIC Posts: 639
edited July 2012 in Working with GS (Mac)
so the levels for my platform game will be done in photoshop basically adding everything in there as far as the ground visuals and whatnot... in game salad i have an actor labeled ground which i am going to place in the appropriate places... my question... i am going to create about 40 levels now do all of those levels have to be imported as actors or is there something else that i can do to eliminate how many actors that i am going to be having because I'm having A LOT of actors... A LOT OF THEM LOL

Answers

  • jn2002dkjn2002dk Member Posts: 102
    I suppose you could use the animate behaviour to switch image depending on what scene you're on
  • UtopianGamesUtopianGames Member Posts: 5,692
    edited July 2012
    You could make an integer and change it to 1 then have something that counts up for the levels (game.levelCount to game.levelCount+1)

    Name your 40 background images 1.png 2.png 3.png and so on then simply constrain self.image to game.levelCount.

    You could also use tables to store the image names and have a rule checking and going down a row for each new level.

    My only concern is 40 images specially if there hi res will probably kill GS and make it crash.

    Darren.
  • digitalzerodigitalzero Member, BASIC Posts: 639
    using the game.levelcount method how am i able to plug in the "grounds" and the enemies for the levels I'm not sure how to do all of this and will i be facing major lag issues... i just want everything to run smoothly so that i can complete the game as soon as possible please let me know... thanks
  • UtopianGamesUtopianGames Member Posts: 5,692
    edited July 2012
    If your painting the platforms in with the background you will have to drag the platform actor into position, make sure movable is off and use collide in your hero with actor of type or tag platforms.

    After you have all your platform actors in position simply move the background actor above them in the layer to hide them or change alpha to 0.

    You can have a lot of none movable actors in the scene so i wouldn't worry too much just use the one actor and change its size and angle depending on what you need.

    Darren.
Sign In or Register to comment.