When setting transform manually, it doesn't always work.
Numbered Steps to Reproduce Problem:
1. Use the code snippet.
Code Snippet (if applicable) to Reproduce Problem:
This works:
obj/spinit
icon = 'Base.dmi'
screen_loc = "CENTER-3,CENTER"
New()
spawn
dir = NORTH
spin()
proc/spin()
while(src)
animate(src,time = 0,transform = matrix(-40,MATRIX_ROTATE))
animate(time = 10,transform = matrix(50,MATRIX_ROTATE))
sleep(10)
dir = turn(dir,-90)
This doesn't:
obj/spinit
icon = 'Base.dmi'
screen_loc = "CENTER-3,CENTER"
New()
spawn
dir = NORTH
spin()
proc/spin()
while(src)
transform = matrix(-40,MATRIX_ROTATE)
animate(src,time = 10,transform = matrix(50,MATRIX_ROTATE))
sleep(10)
dir = turn(dir,-90)
Expected Results:
It works in both cases.
Actual Results:
It only works in one.
Does the problem occur:
Every time? Or how often? Every time.
In other games? Probably.
In other user accounts? Yes.
On other computers? Yes.
When does the problem NOT occur? When you call an animate() with no time instead.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Dunno.
Workarounds:
Use an animate() with no time instead.
I haven't had issues like this, but I'll give it a test.