Page 1 of 1

player updates

PostPosted: Wed Oct 17, 2007 10:42 pm
by jagheera nex
how would i make it so when the main player crossed a certain part of the game somthing would happen like higher jump? can someon give me a code or a tutorial would be nice tyvm! :o

Re: player updates

PostPosted: Thu Oct 18, 2007 3:00 am
by DilloDude
Make an invisible sensor actor (either wireframe region or use visibility state). When it collides with the player, destroy itself, and change some variable. You might have for your jump code
Code: Select all
yvelocity = -8;
In that case, create a jumpHeight variable and use that instead:
Code: Select all
yvelocity = jumpHeight;
Don't forget to set jumpHeight to -8 on create actor (or level start, or whenever).

Re: player updates

PostPosted: Thu Oct 18, 2007 3:22 am
by jagheera nex
oh i get it thanks sounds so simple i can't belive i didn't think of that! :D