I'm having a few issues getting an animation to work properly. I want to achieve the effect of a door opening and closing. At first, I tried doing it with an animation within a single sprite, but given the openDoor sprite needs to be larger than the closedDoor sprite, I decided to instead use completely different sprites.
I'm using the following events:
- Mouse ---> On Left Click on closedDoor ---> closedDoor ---> Destroy
AND ---> System ---> Create openDoor @ 330,413
- Mouse ---> On Left Click on openDoor ---> openDoor ---> Destroy
AND ---> System ---> Create closedDoor @ 315,429
With these events, the closed door will initially destroy and spawn the open door upon clicking on it, but the open door will NOT destroy NOR spawn the closed door upon clicking on it.
I'm at work right now so I can't upload the capx, but if need be I will upload it tonight after work.