ID:2960585
 
BYOND Version:515
Operating System:Temple OS
Web Browser:Firefox 134.0
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
Using
animate(invisibility = invis)
in an animate() chain sets the invisibility instantly instead of after the earlier steps.

Code Snippet (if applicable) to Reproduce Problem:
world
fps = 25 // 25 frames per second
icon_size = 32 // 32x32 icon size by default

view = 9 // show up to 6 tiles outward from center (13x13 view)
maxx = 13
maxy = 13
maxz = 1

mob = /mob

mob
icon = 'icon.dmi'

mob/verb/do_a_worky()
var/mob/cat = new(src)
cat.screen_loc = "CENTER"
usr.client.screen += cat
sleep(5)

animate(cat, transform = cat.transform.Translate(32*3, 0), time = 3, easing = QUAD_EASING|EASE_OUT) //example stuff
animate(time = 5)
animate(transform = null, time = 3, easing = QUAD_EASING|EASE_IN) //example stuff
//animate(invisibility = 101)

mob/verb/do_a_bug()
var/mob/cat = new(src)
cat.screen_loc = "CENTER,CENTER+2"
usr.client.screen += cat
sleep(5)

animate(cat, transform = cat.transform.Translate(32*3, 0), time = 3, easing = QUAD_EASING|EASE_OUT) //example stuff
animate(time = 5)
animate(transform = null, time = 3, easing = QUAD_EASING|EASE_IN) //example stuff
animate(invisibility = 101) //works fine without this line


Expected Results:
The object goes invisible after moving back and forth.

Actual Results:
The object goes invisible right as the sleep() finishes.

Does the problem occur:
Every time? Or how often? Every time
In other games? Everywhere
In other user accounts? Everywho
On other computers? Every

When does the problem NOT occur?
If the animate(invisibility) call is removed.

Workarounds:
idk
spawn(time) cat.invisibility = 101
probably

Login to reply.