Open Surge Forum

A fun 2D retro platformer inspired by Sonic games and a game creation system

You are not logged in.

Announcement

Our community has moved to Discord! https://discord.gg/w8JqM7m

#1 2017-09-16 20:20:14

SGWaS
Member
Registered: 2017-08-29
Posts: 95

Make brick/item/object disappear on command?

Yet another question about the engine:

How do you make a placed brick, item or object (preferably brick) disappear on an object's change to the destroy state? There is going to be mini-bosses in ME's Warehouse Act 2 in VA: TG, and I wanted an exit to appear only when the boss is defeated.

Thanks!


-SGWaS

Offline

#2 2017-09-17 00:38:46

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,300
Website

Re: Make brick/item/object disappear on command?

Hi SGWaS,

Create your state machine and then use set_obstacle as needed.

Additionally, see change_closest_object_state wink

Offline

Board footer

Powered by FluxBB  hosted by tuxfamily.org