none
Winning a Game RRS feed

  • Question

  • I'm almost done my code, but I just need help with one last thing. I want the player to win and move on to the next level if they move over a circle. However, the code I used to make the player loss if they hit their own trail is interfering with this. Here is the import code for the program I have now: ZDW408 *the problem area is on lines 38-49 and 95-101

    Any help would be greatly appreciated.

    Tuesday, November 27, 2012 6:22 PM

Answers

  • @pleasehelpmeicantcode:

    In your subroutine you check if winx is equal to x.

    X increases and decreases in steps of 12 pixels. Winx is a random number between 1 and 980. (ALL NUMBERS). 11 of the 12 times winx cannot be reached in steps of 12!

    You should make winx and winy multiples of 12.


    Jan [ WhTurner ] The Netherlands


    Thursday, November 29, 2012 2:34 PM
    Answerer

All replies

  • How about this GGP234

    Thursday, November 29, 2012 1:50 PM
    Answerer
  • @pleasehelpmeicantcode:

    In your subroutine you check if winx is equal to x.

    X increases and decreases in steps of 12 pixels. Winx is a random number between 1 and 980. (ALL NUMBERS). 11 of the 12 times winx cannot be reached in steps of 12!

    You should make winx and winy multiples of 12.


    Jan [ WhTurner ] The Netherlands


    Thursday, November 29, 2012 2:34 PM
    Answerer