• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows Best way to create ground in platformer?

M

MarkyzZz

Guest
Hello. I am not quite sure if anyone has already asked this question as i couldn't find any answers, i would like to know your opinions: Which is the best way to create ground/terrain in platformer games on which the player would walk? What is the most efficient way so it won't use many resources? As i can see, using many objects would decrease in performance.
 
Z

zendraw

Guest
well it depends, you can also use tiles as ground, or perhaps have a certain y position in the room which the player cant go past and use it as a platform, like
if (y>=yy)
{
vspeed=0;
grounded=1;
while (y>yy) {y--}
}

or you can simply deactivate objects that are out of the area.

first make your game`s goal/purposes clear and then its easy.
 
Top