Objects that are animated (in this specific case, and maybe the only case, via transform so that it is rotated sideways,) cannot have any verbs that you could normally access through the right-click context menu accessed, because right-clicking does not show the context menu.
Numbered Steps to Reproduce Problem:
Have an obj with a verb which rotates it via animate() and a matrix
Rotate it
You can no longer access its verb.
Code Snippet (if applicable) to Reproduce Problem:
/*
These are simple defaults for your project.
*/
world
fps = 25 // 25 frames per second
icon_size = 32 // 32x32 icon size by default
view = 6 // show up to 6 tiles outward from center (13x13 view)
// Make objects move 8 pixels per tick when walking
mob
step_size = 8
obj
step_size = 8
testObj
icon = 'ayy.dmi'
var/lying = 0
var/lying_prev = 0
verb
test()
set src in world
lying = 1
update_transform()
proc
update_transform()
if(lying != lying_prev)
var/matrix/final_transform = matrix()
var/final_pixel_y = pixel_y
var/final_dir = dir
if(lying == 0) // lying to standing
final_pixel_y += 6
else //if(lying != 0)
if(lying_prev == 0) // standing to lying
final_pixel_y -= 6
final_transform.Turn(90)
if(dir & (EAST | WEST)) // facing east or west
final_dir = pick(NORTH, SOUTH) // so you fall on your side
lying_prev = lying // so we don't try to animate until there's been another change.
animate(src, transform = final_transform, pixel_y = final_pixel_y, dir = final_dir, time = 2, easing = EASE_IN | EASE_OUT)
Expected Results:
Be able to right-click again to re-rotate the obj.
Actual Results:
The verb can be accessed the first time in order to start the rotation the first time, but the second time you cannot access it via right-click.
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.)
Did not occur in 509 (current stable branch)
Should note that this occurs on mobs as well, so I believe it'd occur on any atoms that were animated with this method.