|
|
Browse by Tags
All Tags » Example » KPL
-
Here's a quick example based on LearningProgram004, Joyce.
Basically, I added a second UFO to the program, move them both, and
when they collide I make one of them disappear and the other one grow
in size.It sounds like a very fun game - glad to help more as you work on it!
-
There is no difference we have moved away from using ‘Var’ and are now recommending ‘Define’ because it is more understandable and is descriptive of what you’re actually doing. We say that ‘Var’ is depreciated in favor of ‘Define’ I would highly recommend that you think about ...
-
Also see the "006 Keyboard Controlled Sprite" Examle in the Step-By-Step Tutorials in Phrogram
Thanks Walt
-
Here you go, Wolf - the zip file linked above should have a running version of your program in it. I'll also paste it below. The main thing you needed was a "while" loop which keeps running, watching for keys over and over again, and moving the tanker when a key has been pressed. Try it out, then ask some questions, ...
-
There are really only two differences from your original program, and they'll be useful as an explanation to everyone else, so let me do that.
The simple one is how I displayed that status message each time the space bar is pressed: ClearRect(0, 0,
200, 50, White)
PrintInRect("lvlisfarming
is now: ...
-
Hi WhiteElf,
Glad to help get this working - it's a good example for others to see as well. I have modified your example quite a bit, and will paste it below, as well as attach the KPL file to this message - see the link at the top of my post which makes the KPL file available for download.
There are a couple of complicated ...
|
|
|