Super Power – Speed

Type: Additional skill
Level: 2 star
Pages: 1
Description: This kode when activated increases the player speed for 10 seconds and applies a sparkle effect to the player.

This brain is not standalone and will need to be added to a player brain using add brain.
eg.
WHEN [Right trigger][pressed] DO [add brain][brain: Super Power-Speed]

Kode

  1. WHEN [once] DO [ground speed][increment by][5] // change this for amount of speed
  2. WHEN DO [play fx][fx:Sparkle][on][me]
  3. WHEN [started to][countdown timer][10] // change this for length of time the effect lasts
  4. …WHEN DO [ground speed][decrement by][5]
  5. …WHEN DO [remove brain][this brain]

Alterations

Add a cooldown time between activations
This will give a cooldown of 10 seconds before you can activate the speed boost again. You may want to display the cooldown number for the player.

In player brain
WHEN [numvar:cooldown][less than or equal to][0] DO [numvar:cooldown][equals][0]
…WHEN [right trigger][pressed] DO [add brain][IWP:speed brain]
…WHEN [else]
…/…WHEN [countdown timer][loop] DO [numvar:cooldown][drement by][1]

In a template copy of Super Power – speed brain

Add line 4, child to line 3

WHEN DO [numvar:cooldown][equals][10]

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: