Game Development Community

How to make a "Speed buff" c++ change

by Sean Oloughlin · in Torque Game Engine · 03/08/2012 (8:24 pm) · 2 replies

hi all,

I need help to make a C++ change that increase's the movement speed of the player that can be called later on in the onPickup() function.I am fairly new to C++ and torque so if you know any resourse's or source code will be much appreciated.

thanks for your time,

Sean

#1
03/11/2012 (12:48 pm)
Check out any of the Sprinting Resources and instead of triggering from a keybind, switch to sprinting mode for the player from your item's onPickup() callback when the player grabs it.
#2
03/15/2012 (7:46 pm)
thanks for your reply, but i cant seem to get any of them to work. wheres the code that speeds up the players movement? once i found that i should be able to change it so it doesnt use energy.

thanks in advanced.