Addition to Family spawns

This forum is currently in read-only mode.
From the Asset Store
A collection of various zombie characters sprites for creating a 2D platformer or sidescroller game
  • Im happy enough for the addition of being able to randomly spawn a family object. I have an idea though. Why not be able to make some parts of a family spawn more than others? for example: Objects A, B, and C are in a family.

    ---Bullet collides with Wall- Spawn Object Family- 50% Object A 30% object B 20%object C.

    donno if this would be hard to add or if its even a priority just thought it might be a good Idea.

  • you can easily program the random thing with a couple of extra events.

    bullet collides with wall

    -set bullet('randomizer') to random(101)

    >bullet randomizer between 0-50

    -spawn obj 1

    -destroy bullet

    >bullet randomizer between 51-80

    -spawn obj 2

    -destroy bullet

    >bullet randomizer between 81-100

    -spawn obj 3

    -destroy bullet

  • Yes it would work like that. But why are you using Random(101)? That's not accurate.

    Use Random(100), make the range for obj1 0-49, obj2 50-79 and obj3 80-99.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Still his idea would be a nice addition, perhaps a slot under families, called random pick probability?....

  • No, I think this is too specific a feature to deserve IDE features. It's fairly obscure, and very easy to do in events, so I think any IDE options to make this quicker and easier is a waste of space.

  • Ok thanks for the consideration though

  • you can easily program the random thing with a couple of extra events.

    >bullet collides with wall

    -set bullet('randomizer') to random(101)

    >bullet randomizer between 0-50

    -spawn obj 1

    -destroy bullet

    >bullet randomizer between 51-80

    -spawn obj 2

    -destroy bullet

    >bullet randomizer between 81-100

    -spawn obj 3

    -destroy bullet

    Yeah well, its easy to do in pseudo code any ways.....

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)