0 Favourites

[REQUEST] Destroy behaviour

  • A "Destroy behaviour" to set what things will make the sprite be destroyed.

    Yes/No properties

    -------------------------------------------------------------------------------

    /out_layout -> When is outside layout

    /down_layout -> When Y(Top) is greater than the Y game resolution

    /up_layout -> When Y(Bottom) is lower than the Y game resolution

    /hero_contact -> *When collides with hero

    /hero_overlap -> *When is overlaped by hero

    /animation_end -> When default animation ends (Explosions, particles..)

    /solid_collision -> When collide with a solid object

    /same_sprite -> When collides with another instance of the same object (Ex: 2 bullets)

    Etc...

    Setting the instance variable and value

    -------------------------------------------------------------------------------

    /"instance variable" is X

    Ex: life is 0 -> Destroy

    Config:

    -------------------------------------------------------------------------------

    *On Start layout -> Set "Sprite" as Hero.DestroyBehaviour

    ---

    Maybe can't be done in the way i mentioned but i guess you get the point.

    Actually there is a behaviour called "destroy outside layout", the idea is made a more rich behaviour to set in what ways the sprite can be destroyed.

    Now i'm using events/families for do that, will be great a behaviour on you can set all this without any additional events/families or whatever, simply selection yes/no or setting what instances variables to compare.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
[BEHAVIOR] Chipmunk Physics
673 82,473
nelostic's avatar
nelostic
Unread hot topic
0 Favourites
[Behavior] LiteTween
672 169,840
manujorgo's avatar
manujorgo
Unread hot topic
564 105,183
rexrainbow's avatar
rexrainbow