going NUTS with rules / how to change and destroy actors

alpha-beta-gameralpha-beta-gamer Member Posts: 14
edited November -1 in Working with GS (Mac)
Hi everyone, i'm really going nuts with these not working rules in my game. Hope you can help me with that.

I'm doing an arcade ball-hit-coins game. there's a platform, with which the ball has to collide to not drop off the game. the ball is supposted to hit and destroy the coins. when every coin is hit, the level is won. when the ball did not collide with the platform but falls off the screen, there's one of the lives lost till game over.

What i want to do:

to use 3 different coins each level in various amounts.
Coin A has to be hint once to be destroyed.
Coin B has to be hit twice to be destroyed - after 1st hit, it should turn into Coin A.
Coin C has to be hit tree times to be destroyed - after first hit, it should turn into Coin B, after 2nd hit, it should turn into Coin A.

If have tried multiple collide rules in one actor, i also tried to work with tags, who count +1 with every hit and then make conditions about what to happen if tag equals xy.

None of that succeeded. I'm desperate by now!
Do you guys have any suggestions?

Comments

  • alpha-beta-gameralpha-beta-gamer Member Posts: 14
    Finally I FOUND OUT what the Problem is!

    Chain went that way:

    Coin C: on collide w. ball, destroy Coin C + spawn Coin B before Coin C.
    Coin B: on collide w. ball, destroy Coin B + spawn Coin B before Coin A.
    Coin A: on collide w. ball, destroy Coin A.

    I just figured out, that on ONE collide with the ball up to all 3 Coins, which have spawned properly, can be destroyed BECAUSE: they are the SAME SIZE! So the ball has the chance to destroy - not everytime but quite often - Coin C + B and perhaps also A in on strike.

    What will I change:

    Option A: Change the sizes of Coin B and A (which might look silly)

    Option B: Attach an invisible Actor to Coin A, B, C to with collide with the ball instead of the Coins, and make that Actors in different sizes.

    Thanks to nobody for helping out. But great for me to finally solving that problem :-)
  • JPickardJPickard Member Posts: 477
    Sorry I couldn't help, but thanks for sharing how you solved a problem similar to one I'm having.
  • alpha-beta-gameralpha-beta-gamer Member Posts: 14
    that's why we are all here, aren't we? :-)e
  • JeffreyShimaneJeffreyShimane Member Posts: 372
    Is there any difference between coins A, B, and C except for the amount of hits needed to destroy them?

    - Jeff
  • alpha-beta-gameralpha-beta-gamer Member Posts: 14
    @Jeffrey:

    Differences between the coins:

    Coin A - Picture A, one hit to destroy
    Coin B - Picture B, two hits to destoy (one hit, then destroy B, spawn A)
    Coin C - Picture C, three hits to destroy (one hit, then destroy C, spawn B)

    Everything else on the Coins is similar from A to C.
Sign In or Register to comment.