Welcome to Phrogram Sign in | Join | Help
in Search


Browse by Tags

All Tags » KPL » Code
  • User Input

    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" ...
    Posted to KPL Questions and Answers (Forum) by dubsey on July 19, 2007
  • Any one know how i ca make a pen turn a corner ?

    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= ...
    Posted to KPL Questions and Answers (Forum) by silver1114 on January 24, 2007
  • Trying to adapt Temperature Value Entry program --- keyword problems. Help!

    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?
    Posted to KPL Questions and Answers (Forum) by ydg on January 5, 2007
  • Help - How to make a sprite(.gif) go back up?

    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 ...
    Posted to KPL Questions and Answers (Forum) by Alex on November 16, 2006
  • How can I move two objects at two different speeds?

    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 ...
    Posted to KPL Questions and Answers (Forum) by bchs108 on November 14, 2006
  • Re: help with a game like snake

    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!
    Posted to KPL Questions and Answers (Forum) by JonS on November 2, 2006
  • Re: Why won't this work?

    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, ...
    Posted to KPL Questions and Answers (Forum) by JonS on October 3, 2006
  • Re: word+word doesent work

    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: ...
    Posted to KPL Questions and Answers (Forum) by JonS on September 22, 2006
  • Re: word+word doesent work

    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 ...
    Posted to KPL Questions and Answers (Forum) by JonS on September 22, 2006