How to double an actor each time another actor is touched?

VGXVGX Member Posts: 796
edited November -1 in Working with GS (Mac)
Hi,
My first game I made was Catch The Ball (and got to admit its pretty **** looking at it now) but at the time I was so excited about it, it was my first attempt at making a game. Anyway I have learned so much this year and I want to update it now changing everything. but have only one problem that I can not work out...

when you touch the white ball, a black ball will appear. each time you touch the white ball the black ball doubles making it harder to catch the white ball. how do I do this?

All I want to know is how to double the black balls each time you touch the white ball

Thanks

Comments

  • VGXVGX Member Posts: 796
    ?
  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    Hello mate, well I'm not sure what you mean.

    You want the black ball to double in size? Or to double in number? i.e 2 blacks balls appear, then 4, then 8 etc

    Shaz
    ________

    Say hi on Twitter
    Like us on Facebook
    www.HoneyTribeStudios.com
  • VGXVGX Member Posts: 796
    Hey yeah, double in numbers. How can I do this? what rules or attributes do I need to input?
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Hey Veira-

    I sent you a PM.

    About your question - Maybe just have a rule saying when touch is pressed spawn black orb.

    Then another rule:
    If attribute game.blackorbcount is more then 1 spawn another?
    I am sure it has something to do with math ;)
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Yeah but I believe he is saying that he wants it not to double once, which is easy. But EACH time he presses it.

    So if he presses it 100 times, the orbs would spawn double the number on screen.
    Correct me if im wrong.
  • VGXVGX Member Posts: 796
    Basically what I want is,
    when the white ball is pressed, spawn black ball.
    When white ball is pressed, spawn 2 black balls.
    When white ball is pressed, spawn 4 black balls
    then 8, 16, 32 and so on.

    Which rule/attribute will work? Braydon_SFX or uptimistik ?
  • VGXVGX Member Posts: 796
    So whats the best way around that?
Sign In or Register to comment.