3rd Person – Jump Thrust

Type: Player Brain
Level: 3 star
Pages: 1
Description:  When the player holds down the left trigger the player shoots into the air with a trailing special fx. There is no limit to the height of the thrust. When the player releases the character falls to the ground. There is not fall damage.


  1. WHEN [once]
  2. …WHEN DO [equip][Astro Pistol]
  3. …WHEN DO [ team][equals][team 1]
  4. WHEN DO [follow camera]
  5. WHEN DO [display meter][health][max][max health][screen top left]

    Jump mechanic

  6. WHEN [left trigger]
  7. …WHEN [started to]
  8. …/…WHEN DO [jump]
  9. …/…WHEN DO [multi jump count][equals][-1]
  10. …WHEN [left stick] DO [move][with strafing]
  11. …WHEN DO [push][in direction][world up][strength][1.25]
  12. …WHEN DO [play fx][fx:Projectile Trail][at socket][right hand][scale][0.5]
  13. …WHEN DO [play fx][fx:Projectile Trail][at socket][left hand][scale][0.5]
  14. …WHEN DO [vibrate][duration][0.1]
  15. …WHEN [else]
  16. …/…WHEN [started to] DO [fall]
  17. …/…WHEN [left stick] DO [move]
  18. WHEN [started to][on ground] DO [multi jump count][equals][2]

    Action buttons

  19. WHEN [button A][pressed] DO [jump]
  20. WHEN [button X][pressed] DO [attack]
  21. WHEN [Right trigger] DO [shoot]

    Standard Interaction kode

  22. WHEN [detect][interactable][objects in front]
  23. …WHEN DO[highlight it yellow]
  24. …WHEN [is using keyboard] DO [display][middle mouse button][ above ][ it]
  25. …WHEN[using controller][or][is using touch] DO [display][icon:B][above] [it]
  26. …WHEN [button B][pressed] DO [interact]
  27. …WHEN [else]
  28. …/…WHEN [button B][pressed] DO [dodge][with strafing][invulnerable]



Limit height of thrust
You probably do not want your player rising up and up until they hit the topmost limit and be destroyed (which they will in 17 seconds). So you will probably need to set a limiter to the thrust.  In this example the player will lose thrust if they reach a height of 60 metres.

Change line 6 to
WHEN [left trigger][and][position][y][less than or equal to][60] // you can change the 60 to the height of your choice.


Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: