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

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




PostPosted: Fri Dec 14, 2012 6:20 am   Post subject: Help me Please

I am currently trying to solve this problem. I need help with it badly.

So I am trying make plasma ray that will shoot but I want it so that it will come back to the original place. How do I do that?

The Code

var move1 : string (1)%input
var x2, y2 : int%shape cord
x2 := 20
y2 := 40
loop
drawfilloval (x2, y2, 5, 5, purple)%shape
getch (move1)%input from user

if move1 = chr (32) then%if the user presses space-bar
loop
delay (20)
drawfilloval (x2, y2, 5, 5, white)
x2 := x2 + 10
drawfilloval (x2, y2, 5, 5, purple)
end loop
if x2 > 640 then
x2 := 20
y2 := 40
drawfilloval (x2, y2, 5, 5, purple)
end if
end if
end loop
Sponsor
Sponsor
Sponsor
sponsor
TheBboy




PostPosted: Fri Dec 14, 2012 7:27 am   Post subject: Re: Help me Please

NVMMM. I SOLVED IT YESS. THIS IS MY FIRST MAJOR PROBLEM THAT I SOLVED FOR MYSELF Very Happy ( I know it's not a big problem for you people -.-)
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: