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

Username:   Password: 
 RegisterRegister   
 Game :)
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Shippuo23




PostPosted: Thu Apr 09, 2009 9:08 am   Post subject: Game :)

I am making a game and I need to make characters come down the screen, I had done that part but now i need to make it so that when i press a button the character dissapears and another one comes up please help me thanks Smile

This is what I have so far By The Way I am using Turing

setscreen ("graphics")

procedure Monsta
var Monsta : int := Pic.FileNew ("Monsta.bmp")
for y : 200 .. 600
Pic.Draw (Monsta, 250, (maxx - y), 0)
delay (10)
cls
end for
end Monsta

procedure Witch
var Witch : int := Pic.FileNew ("Witch.jpg")
for y : 200 .. 600
Pic.Draw (Witch, 250, (maxx - y), 0)
delay (10)
cls
end for
end Witch

procedure ghost
var ghost : int := Pic.FileNew ("ghost.jpg")
for y : 200 .. 600
Pic.Draw (ghost, 250, (maxx - y), 0)
delay (10)
cls
end for
end ghost

loop
locatexy (50, 75)
put "Do you want to play this Game?(y or n):" ..
var reply : string
get reply
if reply = "n" then
exit
elsif reply = "y" then
cls
locatexy (50, 75)
end if
put "Choose your difficulty(Easy, Moderate, Hard):" ..
var reply2 : string
get reply2
cls
exit when reply2 not= "yes"
var Easy : string
var Moderate : string
var Hard : string
end loop
loop
Monsta
Witch
ghost
end loop
Sponsor
Sponsor
Sponsor
sponsor
DemonWasp




PostPosted: Thu Apr 09, 2009 10:24 am   Post subject: RE:Game :)

Note: This is a duplicate of the exact same thread posted in the Turing Help forum here: http://compsci.ca/v3/viewtopic.php?p=182911#182911

Please do not cross-post to different areas of the forum. Post in the correct area and you will receive help.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: