Author Topic: can someone help me  (Read 7068 times)

0 Members and 1 Guest are viewing this topic.

Offline spud2451

  • LV2 Member (Next: 40)
  • **
  • Posts: 39
  • Rating: +3/-3
  • Life is simple, but we make it complicated ~conf.
    • View Profile
    • Red Rock Creative [Free Custom Websites]
Re: can someone help me
« Reply #15 on: May 30, 2011, 04:59:05 pm »
omg i'm an idiot

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: can someone help me
« Reply #16 on: May 30, 2011, 05:01:49 pm »
omg i'm an idiot

Don't feel that way. It's always hard to start working with a new language.

i know that but i want to be able to draw sprites

The syntax is Pxl-Change(X_POS,Y_POS,PTR_TO_SPRITE). X and Y should be pretty simple -- you can even put a number in there (like Pt-Change(44,28,PTR_TO_SPRITE)).

As for the pointer, you need to first store the sprite somewhere. In Axe, you can store the sprite data as part of the program by doing something like

Code: (Axe) [Select]
:[001818187E7E18181800]→GDB1
GDB1 is now a pointer to the data you put there, which you can use as a sprite. Now you can do something like Pt-Change(44,28,GDB1) to display the sprite stored at GDB1 (the data above) at the coordinates (44,28) on the screen.

Hope that helps :)
« Last Edit: May 30, 2011, 05:02:47 pm by Deep Thought »




Offline spud2451

  • LV2 Member (Next: 40)
  • **
  • Posts: 39
  • Rating: +3/-3
  • Life is simple, but we make it complicated ~conf.
    • View Profile
    • Red Rock Creative [Free Custom Websites]
Re: can someone help me
« Reply #17 on: May 30, 2011, 05:17:45 pm »
thank you all a lot

Offline turiqwalrus

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 840
  • Rating: +51/-2
  • Wheeeeeee~!
    • View Profile
Re: can someone help me
« Reply #18 on: May 30, 2011, 07:28:34 pm »
omg i'm an idiot
don't worry... I was a total n00b at axe a few months ago ;)

thank you all a lot
you're welcome ;D