Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How to make some thing jump like mario
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
salehyassin




PostPosted: Tue May 20, 2008 4:12 pm   Post subject: 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.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Tue May 20, 2008 4:13 pm   Post subject: RE:How to make some thing jump like mario

There's a tutorial for that in the Turing Tutorials forum.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
salehyassin




PostPosted: Tue May 20, 2008 4:16 pm   Post subject: RE:How to make some thing jump like mario

can you give me the link I couldn't find it
CodeMonkey2000




PostPosted: Tue May 20, 2008 4:18 pm   Post subject: RE:How to make some thing jump like mario

http://compsci.ca/v3/viewtopic.php?t=16790&start=0
isaiahk9




PostPosted: Tue May 20, 2008 4:19 pm   Post subject: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: