Author Topic: Give speed to different objects  (Read 986 times)

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Give speed to different objects
« on: March 30, 2020, 04:56:45 PM »
For example if I want an item to jump when I want, just use:
Code: [Select]
item 1 vspeed = -50
For example, that will give vspeed -50 to item 1
This should work for other stuff
Code: [Select]
enemy 5 hspeed = 20
player 1 hspeed = -30

Note that this shouldn't be terminal speed, it's only a force speed. So for example, giving vspeed to a player to make it go up, will only set the speed for that moment. Afterwards, the gravity will do it's old trickery ;)
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Give speed to different objects
« Reply #1 on: March 30, 2020, 05:55:41 PM »
Definitely needed!