Page 1 of 1

Two littles Problems

PostPosted: Mon Aug 30, 2010 6:26 pm
by olly2000
I try to create my first game with game editor but I have some problems. First, my character can jump infinitely . Secondly, when he touch a wall my character become stuck he can begin to climb. :twisted:

thank for your help. :D

Re: Two littles Problems

PostPosted: Tue Aug 31, 2010 9:18 am
by skydereign
Here is a page on jumping.
http://game-editor.com/Jumping

For your collision problem, you'll have to split the collisions into two or three events. The walls, ground, and ceiling each need there own event, as they each do different things. The current collision event you have will be the top collision with your tiles. The left or right side collision event should look like this.
Code: Select all
double yvel = yvelocity;
PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1.000000,1.000000, 0.000000, 0.000000);
yvelocity=yvel;


The ceiling collision should just be a physical response. The reason it is different than the ground is when you add the jump variable for your game, you don't want it to be restored by hitting the ceiling.