duracel92 wrote:Oh and also, go back on the events bit key down etc, and click on change animation, so your actor will look like it is actually moving.
then go back on the events thing and make a key up event, (use same key as the key down event) and click change animation to one where it looks like it is stopped.
if you can understand this one i'll be surprised im tired thats all so I speak lots of nonsense...
I searched the forum to find information on how to jump. This is what I found: Event Draw Actor Action Script Edit yvelocity=5; add Event Collision (with Ground with repeat enabled). Add Action Script Edit and write yvelocity=0; Add Event Keydown (Up), w/ repeat disabled Add Action Script Editor and write if (yvelocity==0)
To jump use the key down event, and the key you want to jump. in the script editor type *I think* y = y +10; *make sure you have gravity, this will make the actor fall back down. Pressing the jump button and a directional key should make him jump left etc...
He goes right, left, up and down, but he doesn't jump. How can I add jump up to the right or jump up to the left?duracel92 wrote:
I searched the forum to find information on how to jump. This is what I found: Event Draw Actor Action Script Edit yvelocity=5; add Event Collision (with Ground with repeat enabled). Add Action Script Edit and write yvelocity=0; Add Event Keydown (Up), w/ repeat disabled Add Action Script Editor and write if (yvelocity==0)
To jump use the key down event, and the key you want to jump. in the script editor type *I think* y = y +10; *make sure you have gravity, this will make the actor fall back down. Pressing the jump button and a directional key should make him jump left etc...
I think this is to make the actor jump, but only jump once... I don't recomend using this if your a beginner like me also...
ThreeFingerPete wrote:Jumping requires that you impart an upward motion, which you have succeeded in doing. The next stage is to cause the environment to push back down on your jumper. . . .
then physical response. You will see four 1.0 numbers. leave the first two alone, and set the second two to 0.0 that should be all you need. close all the menus and test.
ThreeFingerPete wrote:I guess its because on earth, we measure higher altitudes with larger numbers.
Think of it like gravity. negative gravity will make you rise y-5. Positive gravity pushes you down y+5
I cant wait to see what you have made!
Users browsing this forum: No registered users and 1 guest