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.
 

zendraw

Member
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