player updates

Game Editor comments and discussion.

player updates

Postby jagheera nex » Wed Oct 17, 2007 10:42 pm

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
User avatar
jagheera nex
 
Posts: 46
Joined: Sat Jul 28, 2007 4:13 pm
Location: dik
Score: 1 Give a positive score

Re: player updates

Postby DilloDude » Thu Oct 18, 2007 3:00 am

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).
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Re: player updates

Postby jagheera nex » Thu Oct 18, 2007 3:22 am

oh i get it thanks sounds so simple i can't belive i didn't think of that! :D
User avatar
jagheera nex
 
Posts: 46
Joined: Sat Jul 28, 2007 4:13 pm
Location: dik
Score: 1 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron