ID:176406
![]() Jan 17 2003, 3:31 pm
|
|
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.
|
Copyright © 2025 BYOND Software.
All rights reserved.
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