How to make an object appear and disappear?
Want to spice up your game? Create a dynamic object which appears and disappears to make your game more interesting.
Creating dynamic elements where objects appear and disappear can add an engaging aspect to your game. Follow these steps to set up this effect:
Select your object
Set your Trigger
Decide on the action that will trigger the appearance and disappearance. If you want your object to continuously appear and disappear right from the onset of the game, opt for the “Game Start” trigger. This will ensure the effect begins as soon as gameplay starts.
Set your Loop
To have the object consistently appear and disappear, go to the “Controllers” section. Select and drag the “Infinitely” loop block, placing it below the trigger.
Scale Down
In the “Object Action” section, drag the “Scale Object” block into the “Infinitely” loop. Adjust the block settings, setting X, Y, and Z coordinates to 0 to scale the object down until it disappears.
Add Wait Time
Insert a “Wait” block for a 1-second pause before scaling up again.
Rescale to original size
Add another “Scale Object” block below the first one. Toggle this block and set all axes to 1, allowing the object to return to its original size and reappear.
Add Wait Time
Insert a “Wait” block for a 1-second pause before scaling up again.
Playtest!
After setting up the movements, test your game to see how the object behaves and make adjustments for the perfect effect.
Was this page helpful?