GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

I want modify template game in this !!

satoshiwakatasatoshiwakata Posts: 60Member, PRO

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 Posts: 97Member, PRO

    So whats the question?

  • satoshiwakatasatoshiwakata Posts: 60Member, PRO

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

  • RabidParrotRabidParrot Formally RabidParrot. Posts: 956Member
    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 Posts: 60Member, PRO

    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.