Page 1 of 1

im a newbi

PostPosted: Fri Nov 11, 2005 2:21 pm
by Bonix
ok so im new and the tutorials dont help me figure out how to make an actor jump if i press w or up etc.

can anyone help me?

PostPosted: Fri Nov 11, 2005 2:36 pm
by Kodo
When i was starting out I found an example here in the forums somewhere, complete with ged file to download so I could see how to do it... it's always worth using the forums Search feature to find answers as most things seem to have been covered before :) I'll see if I can find it for you!

PostPosted: Fri Nov 11, 2005 2:38 pm
by Kodo
Take a look at this...

http://game-editor.com/forum/viewtopic. ... light=jump

Check out the post by jazz_e_bob for a file with example in

One thing to remember is that there usually more than one way to do anything, I started with this example but now do it differently, the end result is the same though :)

Hope that helps!

PostPosted: Fri Nov 11, 2005 3:12 pm
by Bonix
Thanks and thanks but i used the pong download to maek a pong gamew and well i can figureout how they got the ball to well bounce around and is there a way to, on start up of the game, have somethink that says "Press Enter"

i know i am asking alot but i just cant read c++ or anything

THX SO MUCH :D

PostPosted: Wed Nov 16, 2005 10:30 pm
by Chai
may be you can look the tutorial in the GE because it's tell u the basic how to Make the 2d platform game

wish u luck
-- the power is your >_<

PostPosted: Thu Nov 17, 2005 1:58 am
by willg101
1. Event > key down > "w" > script editor >
Code: Select all
yvelocity-=4;

2. Event > draw actor > script editor >
Code: Select all
yvelocity+=.5;


Here you have in (step 1) the code for jumping, making the number higher will make you jump higher.

In (step 2) you have gravity. Making this number higher will increase gravity.