Mr Awesome
Member
Afternoon people,
I have five instances of obj_ball in a room, and one of obj_en_cat. When the player fails at an in game matching task, a scene is triggered where obj_en_cat destroys one instance of obj_ball by moving towards it and colliding with it (bursting it) leaving the rest intact. This can happen until there are no obj_ball left, so five times.
Conceptually, if someone could help me with the most elegant code to do this I would appreciate it. I think the best way would be a for loop with a degrees of freedom element but I am not sure how to write this (just a novice). I could use paths and multiple if statements to cover every stipulation but this seems too long.
Any help appreciated and don't forget the Nintendo Direct at 5pm! (Stealth direct post)
I have five instances of obj_ball in a room, and one of obj_en_cat. When the player fails at an in game matching task, a scene is triggered where obj_en_cat destroys one instance of obj_ball by moving towards it and colliding with it (bursting it) leaving the rest intact. This can happen until there are no obj_ball left, so five times.
Conceptually, if someone could help me with the most elegant code to do this I would appreciate it. I think the best way would be a for loop with a degrees of freedom element but I am not sure how to write this (just a novice). I could use paths and multiple if statements to cover every stipulation but this seems too long.
Any help appreciated and don't forget the Nintendo Direct at 5pm! (Stealth direct post)