ID:176406
 
Could someone give me a very quick explanation and maybe a small example of how to use pixel_x and pixel_y. I would like to know how to check to see what it is(ex: if(pixel_x==)something like that)and how to change it(add and subtract). Thanks.
pixel_y and pixel_x are built in vars. They are like your layer number or density. The higher your pixel_y is, the more your icon is pushed up. The higher your pizel_x is, the more your icon is pushed to the right. They count it by pixels (obviously). Heres a little example:

mob/verb/Jump()//verb
src.pixel_y = 10//your icon gets pushed up 10 pixels.
src << "You jump up!"
sleep(20) // waits for a while
src.pixel_y = 0 // your icon gets pushed back down
src << "You land back!"

Example 2:

mob/verb/JumpingTest() // the verb
if(src.pixel_y == 10) // the thing you were doing in your example thing
src << "You are jumping!" // alerts you
else // else..?
src << "You are not jumping!" // alerts you
In response to Unknown Person
Thanks, I alreday knew most of that, I just needed a little review.