Help me Please
Author |
Message |
TheBboy
|
Posted: 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

|
|
 |
TheBboy
|
Posted: 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 ( I know it's not a big problem for you people -.-) |
|
|
|
|
 |
|
|