I want modify template game in this !!

satoshiwakatasatoshiwakata Member, PRO Posts: 60

Hey, there!
Do you know "Cannon Physics", which is the one of templetes in GS.
This templete is that when player shoots the cannon, it is no time from shot to next shot. For mouse botton pressed, next shot begins.
I want to modify to this: after first shot, it takes a few seconds to go to next stot. For example, I want to show player's score for it.
And mouse botton is pressed, the scene changes to priparering shot in next shot. Then, as next mouse botton pressed, next shot starts.

Comments

  • RCT_GamesRCT_Games Member, PRO Posts: 97

    So whats the question?

  • satoshiwakatasatoshiwakata Member, PRO Posts: 60

    RCT_Games >
    Sorry ^^;
    So, I want to know how to make behavior.
    If you know.

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956
    edited August 2015

    Make a shotsavailable integer attribute and set it to 1.

    When game.shotsavailable > 1 and touch is pressed,

    shoot,

    change attribute game.shotsavailable to 0

    Timer,

    after 3 seconds run to completion

    change attribute game.shotsavailable to 1

    This above is all in one rule.

    This will only allow the player to shoot every 3 seconds. You can increase the time by adjusting the timer.

    For "And mouse botton is pressed, the scene changes to priparering shot in next shot. Then, as next mouse botton pressed, next shot starts."\

    I'm not really understanding the question.

  • satoshiwakatasatoshiwakata Member, PRO Posts: 60

    RabidParrot > That's cool! I try it on basis of your advice.
    If I have something to ask you, I am going to ask a question !!

Sign In or Register to comment.