Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Trying to create a skill

Hello

Im trying to create a skill that increase your character movement speed on the map for a certain amount of time. The way i want it to work is that you use the skill from the menu then you character movement speed increase for about 30 secs or so then your movement it back to normal. Is this possible with events? Ive use the search function and didnt really find anything so I apologize if this has already been answered plenty of times.

Thanks
 
In the common event, turn on the timer.
Also, turn on a switch, let's call it 0001:Speed_Timer_On
Code:
Set Move Route: Player
    Change Speed: 6
Control Timer: Startup (0 min. 10 sec.)
Control Switches: [0001: Speed_Timer_On] = ON

Now, create another common event
Set the Trigger to Parallel, and the Condition Switch to 0001: Speed_Timer_On
Code:
Conditional Branch: Timer 0 min 0 sec or less
    Set Move Route: Player
        Change Speed: 4
    Control Switches: [0001: Speed_Timer_On] = OFF
    Branch End

tear it up!  :)

Be Well
 
Wow thanks man thats exactly what i was looking for. I really appreciate the help. Oh and one more thing will the timer stay at the top corner of the screen at 0:00? If so thats ok I can live with it. Thanks again.
 
Yup that did it thanks Brewmeister.  ;D

EDIT: Sorry for the bother again, but there is one more thing. About the timer lets said while the skill is in affect I run into a random battle. When the timer hits 0:00 the battle ends is there a way to prevent this?
 
Ah. Now for that, you'll need something slightly more innovative than using a basic timer. Why not use variables?

Make one common event, which the skill links to, as this:
http://i173.photobucket.com/albums/w73/krypton-knight/Helpingoutrandomidiots1.png[/img]

And the second common event, waits for 10 frames, and then adds to the variable. When it reaches a desired number (20, as I have made it.), the skill gets over, and you're returned back to the default speed:
http://i173.photobucket.com/albums/w73/krypton-knight/Helpingoutrandomidiots2.png[/img]

That's it, enjoy!

PS: Notice how the common event triggers have been setup. Also, I made the temporary disabling system, so that the player can't use the skill when it's already active. ^_^
 
Thanks Krypton you guys are amazing that this stuff lol. ;D I had a little trouble with the skill disable, but i think i figured it out.
The skill disable should be turned off when the start timer is turned off.

Thanks again the skill is finally perfect thanks guys.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top