revealing objects during dialogue
Posted: Wed Mar 10, 2021 5:41 pm
Hello!
I'm trying to figure out how I can have an object be revealed during a piece of dialogue. Essentially, the NPC asks the player what they see, and when they pick a response, I want the object to appear in the scene.
I tried setting an animation that would change the Z position of the object from 1 to 0 so it's popping into view (it's a 2-D game). However, this just flashes the object on the screen and then removes it again.
I know there's some kind of code to put in a script that would permanently change the Z position, but can you call forth a script action with the sequencer?
I'm trying to figure out how I can have an object be revealed during a piece of dialogue. Essentially, the NPC asks the player what they see, and when they pick a response, I want the object to appear in the scene.
I tried setting an animation that would change the Z position of the object from 1 to 0 so it's popping into view (it's a 2-D game). However, this just flashes the object on the screen and then removes it again.
I know there's some kind of code to put in a script that would permanently change the Z position, but can you call forth a script action with the sequencer?