Introduce New Actor to Spawn Sequence

Tim_ATim_A Member, PRO Posts: 60

Hi all,

Just wondering what the best procedure for this might be...

I currently spawn an actor every 2 seconds, which flies across the screen at a random angle... that works no problem.

As the score increases, the spawn rate increases... that works no problem.

What i would like to do is introduce a random 'enemy' into the spawn pattern.

So imagine a load of hearts flying across the screen which the player collects, then all of a sudden a bomb flies across the screen which must be avoided.

I realise I could simply setup a new actor and spawn these, but I don't really want any timing overlaps.

Any suggestions?

Regards

Tim

Comments

  • Tim_ATim_A Member, PRO Posts: 60

    Solved.

    In case anyone's interested... I just introduced a random integer which switched between 0 and 10 every second... then when the integer was 10 I spawned the enemy actor.

    Seems to work perfectly :)

Sign In or Register to comment.