Two littles Problems

Non-platform specific questions.

Two littles Problems

Postby olly2000 » Mon Aug 30, 2010 6:26 pm

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
Am I the only one who speaks French here?
User avatar
olly2000
 
Posts: 25
Joined: Mon Aug 09, 2010 6:48 pm
Location: Canada,Quebec
Score: 1 Give a positive score

Re: Two littles Problems

Postby skydereign » Tue Aug 31, 2010 9:18 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest