
-----------------------------------
salehyassin
Tue May 20, 2008 4:12 pm

How to make some thing jump like mario
-----------------------------------
Hi Guys.

I just would like to ask you how to make an object jump and jump left or right
if you can give me a simple game with object that jump. Thanks alot.

-----------------------------------
Tony
Tue May 20, 2008 4:13 pm

RE:How to make some thing jump like mario
-----------------------------------
There's a tutorial for that in the Turing Tutorials forum.

-----------------------------------
salehyassin
Tue May 20, 2008 4:16 pm

RE:How to make some thing jump like mario
-----------------------------------
can you give me the link I couldn't find it

-----------------------------------
CodeMonkey2000
Tue May 20, 2008 4:18 pm

RE:How to make some thing jump like mario
-----------------------------------
http://compsci.ca/v3/viewtopic.php?t=16790&start=0

-----------------------------------
isaiahk9
Tue May 20, 2008 4:19 pm

RE:How to make some thing jump like mario
-----------------------------------
If you want to draw your character facing left when jumping left, and facing right when jumping right, do something like this :

var characterisright : boolean := true
loop
   if right key is pressed then
      characterisright := true
   elsif left key is pressed then
      characterisright := false
   end if
   if characterisright = true then
      draw the character right
   else
       draw the character left
   end if
end loop

I did that for my game and it works.
