Author Topic: The pxl-Test( command  (Read 5299 times)

0 Members and 1 Guest are viewing this topic.

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
The pxl-Test( command
« on: November 20, 2011, 03:30:23 pm »
This is a command that has been bugging me for a bit...
I need to make a (test) game that allows the player to jump around on a field (which I can do)...
But I can't get the collisions correct!!
This Pxl-Test( command is the newest thing that im learning...
Could someone give me a good explanation on how or where to use this?

Thanks!

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: The pxl-Test( command
« Reply #1 on: November 20, 2011, 03:32:16 pm »
pxltest detects pixels near what ever variable you put ex pxl test x+1,y) if your sprite was 1 pixel it would detect if there was a pixel on next to it
This used to contain a signature.

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: The pxl-Test( command
« Reply #2 on: November 20, 2011, 03:33:40 pm »
My pixel is a stick figure about 8 pixels in height and 5 pixels in length, how would this be written out?

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: The pxl-Test( command
« Reply #3 on: November 20, 2011, 03:38:22 pm »
pixeltest x+5( I believe)and y depends on where you want it to detect

0  copy this and put a 1 where you want it to be detected (this is the last line of your sprite)
0
0
0
0
0
0
0
This used to contain a signature.

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: The pxl-Test( command
« Reply #4 on: November 20, 2011, 03:39:33 pm »
0  copy this and put a 1 where you want it to be detected (this is the last line of your sprite)
0
0
0
0
0
0
1 -This being where his foot is, the rest is to the left :P

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: The pxl-Test( command
« Reply #5 on: November 20, 2011, 03:55:19 pm »
:(pxl-test(x+8,y+8) or pxl-test(x+3,y+8))

thats what you want, if your sprite has the bottom right foot on the bottom corner of the sprite box


edit:can I see your sprite?, what is the hexcode?
« Last Edit: November 20, 2011, 03:55:44 pm by saintrunner »
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: The pxl-Test( command
« Reply #6 on: November 20, 2011, 03:58:58 pm »
[1C141C080C081C22]->Pic0MR Man facing right...
[1C141C0818081C22]->Pic0ML Man facing left...

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: The pxl-Test( command
« Reply #7 on: November 20, 2011, 04:09:15 pm »
ok I posted a mini little tutorial in the forums
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES: