Computer Science Canada

Game :)

Author:  Shippuo23 [ 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

Author:  DemonWasp [ 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.


: