ID:2049412
Mar 8 2016, 4:18 am
|
|
I would like to move characters for certain events in small steps. To do this I would figure it would be something like 'usr.x-=.5' or 'usr.x-=1/2' Neither of them work. The first probably because that's not a correct syntax for Byond and the second one probably because it's being read differently than it's meant to or not doing a follow up.
|
Copyright © 2025 BYOND Software.
All rights reserved.
X,Y, and Z coordinate variables in BYOND must be integers. They cannot have decimal components.
If you are using pixel movement, you'll want to look into step_x and step_y. If you are using tile movement, you'll want to look up glide_size and pixel_x/pixel_y.