Author Topic: Little Bit of Help Please  (Read 4452 times)

0 Members and 1 Guest are viewing this topic.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Little Bit of Help Please
« on: January 15, 2011, 03:48:45 pm »
I'm not quite sure if this is the correct place (I'm assuming since it has to do with Axe)...

So I am writing a game and started using pointers to store variables for the enemies only (so far)... I do this and it seems as if all of the enemies (3 of them) are in the same exact place, and on the very edge of the screen (0,0).

Um. If you need more info like the display or the initial variable declaration just ask 

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Little Bit of Help Please
« Reply #1 on: January 15, 2011, 03:51:03 pm »
I would have it display x, y at some location for each enemy. The initialization code would be helpful.

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Little Bit of Help Please
« Reply #2 on: January 15, 2011, 03:51:12 pm »
You are indeed posting in the correct place, but it's hard to help you if we don't get more information - right now, we only know that your program is failing, but we can't figure out why if we don't know what your code is doing. Could you post the source code?

EDIT: ninja'd again D:
At least our two posts were a bit different...
« Last Edit: January 15, 2011, 03:51:43 pm by JosJuice »

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Little Bit of Help Please
« Reply #3 on: January 15, 2011, 03:52:16 pm »
Sure thing. Will edit in a moment. Just need to send over from calculator

Code: [Select]
.Enemy Declarations
For(X,0,2)
    rand^(88)->{X*2+L1}
    rand^(25)->{X*2+1+L1}
End

.Enemy Displays
For(Y,0,2)
    Pt-On({X*2+L1},{X*2+1+L1},PIC3)
End
« Last Edit: January 15, 2011, 03:59:32 pm by jkag »

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Little Bit of Help Please
« Reply #4 on: January 15, 2011, 04:28:28 pm »
Your For loop is using the variable Y but you have X as the counter inside the loop.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Little Bit of Help Please
« Reply #5 on: January 15, 2011, 04:30:56 pm »
Ahaha. Thanks Quigibo. I'm surprised I didn't see that lol.