Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ncw14 on Thu 28/02/2008 23:31:58

Title: Jumping Character
Post by: ncw14 on Thu 28/02/2008 23:31:58
Im making a 2d game but i cant quite get it to work the way i want, i need jumping for my character, i want it so that he animates on loop 8 then jumps, not just straight up either, its like mario if your not moving on ground you go straight up but you can still move in air, if your moving on ground and jump you go up and far forward

You understanding any of this?

i need a jump function or code
Title: Re: Jumping Character
Post by: R4L on Fri 29/02/2008 01:04:15
There is no exact code or function, as you put it, but there are ways:

1) Try out some games like Platformerius (spelling?). They can give you an idea of how it works.

2) Search for Bernie's platform code. I think it's a little outdated now, but you might get how it works.
Title: Re: Jumping Character
Post by: ncw14 on Fri 29/02/2008 02:05:00
I like the features in bernies module but in 2.71 my character doesnt even animate anymore while using it, any way i can fix this
Title: Re: Jumping Character
Post by: Radiant on Fri 29/02/2008 09:45:52
Try using the character[EGO].z variable.
Title: Re: Jumping Character
Post by: ncw14 on Sat 01/03/2008 05:03:34
about z

i dont quite get the whole concept

could someone give me some simple codes so i can learn how it works, then i can improve off of those codes, i dont get ints and try to find out about i read alot but the concept hurts my head, but if someone would give me basic codes i could improve off of them