Official Cross-Platform Controller Template fire rate control?

pjnolenpjnolen Member Posts: 152
edited November -1 in Working with GS (Mac)
I'm using the Official Cross-Platform Controller Template. But the fire rate is as fast as you can press the button.

I need to limit it for that template. I've tried tons of different things, but i can't make out where to put a timer, and what attribute to use, or what to add to it.

If I could have an attribute that can be altered so that i can speed up and slow down the fire rate during gameplay, it would the greatest thing ever.

If it can't be done, perhaps someone has another template for controls. Just a joystick and 1 buttons really, but where you can control the fire rate.

Thanks in advance!

Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    You put the timer in the fire button. It should have one there already (I haven't seen the template) All you do is change the timer to say "every" 0.5 seconds (or whatever time you need) interpolate or spawn bullet.
  • pjnolenpjnolen Member Posts: 152
    there is a lot of stuff in the template. I've tried a timer in every part i'd imagine would affect the fire rate and no matter what, it doesn't work. Either it fires once and stops, or it doesn't fire at all, or the button depresses and stays that way, but doesn't shoot, or it depresses just as fast as you press it, but it doesn't shoot at all, etc.

    I get lots of reactions, but none are what i need. SlickZero, d/l the template an take a look, i just need another pair of eyes to look at it, I've been staring at it so long it's starting to blur!
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Which template are you using specifically, the double joystick, or joystick/buttons?

    Edit: NVM, I see you said button...
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Okay….You need to go into the main actor in the bin, not the button, and look for the block called "Projectile 1 Fired - Button 1 is pressed" and drag a timer in there, and then drag the rules that are already there into the timer you just added, and adjust the time so it fires to your liking. Do that for the other button as well.
  • pjnolenpjnolen Member Posts: 152
    ok, I put a timer under the "Projectile 1 Fired - Button 1 is pressed".

    So like this...
    Timer
    every 1 seconds
    ---spawn actor:bullet

    If I use the 'every 1 seconds' option, and select(or not select) 'run to completion', you press the A button, and it does not fire.

    If I use the 'after 1 seconds' option, (run to completion on or not)it will try to wait till after 1 seconds to fire. If I keep pressing the button, it never fires.

    If I choose the 'for 1 seconds (without selecting 'run to completion' it still fires every time I press the button, if I select run to completion then HOLY GOD IN HEAVEN IT WORKS!!

    Sir, I will dance at your wedding.
Sign In or Register to comment.