|
|
Browse by Tags
All Tags » code » KPL
-
Hey.
I recently got a question at school that goes like asked us to modify the following code so that users can enter the number of steps they want a sprite to move accross the screen.
Program UFO
Method Main()
LoadSprite( "UFO", "UFO.GIF" ...
-
Iam wrighting a simpel drawing program for my programing class and when I move the pen wtih a very wide penwidth it can't make the trun smuthly it allways leaves a chunck out . I put in my method main if you need to look at it. oh I am usibg KPL 1.1 not phrogram .
Method Main()Maximize()
max_x= ...
-
I'm trying to adapt the Temperature Value Entry program to a currency conversion program. I can't seem to get the keyword right and have tried the keyword from the original program, as well as all keywords I could find that are used in other programs. Does anyone have any ideas for me?
-
Hello to all
Please could you help me? At school I am a member of the programmers club and we (the programmers club) are having a problem.
We are trying to get the sprite to go back up after moving it down using the "For" loop . We have tryed almost evrything we know but still nothing. Normaly with programming langages when ...
-
If we use delay it delays both objects. We tried a loop in a loop but that does not work either. We do have a background stamped on the screen. The intent of the program is to be able to shoot missles at an object by first moving it with the keyboard. We tried looking at spaceshooter and we cannot figure out how to adapt it to our ...
-
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!
-
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 ...
|
|
|