So... I'm completely new to this software. Came here from Gamemaker to see what was going on over here <img src="smileys/smiley2.gif" border="0" align="middle" />
Anyway...
I got a sprite with the 8Direction behavior. What I want to do is bind the Max Speed with an Instance Variable (Since I can not find a subtract/add event linked with Max Speed).
Say it starts at 200. When I click ctrl it subtracts 100. Shift adds 100.
So I don't have to hold down a key to change the speed. I tab it.
Now I can imagine Gamemaker isn't too popular over here?
But just to show what I mean in GML:
I got a variable called playerSpeed and code looking like this:
if keyboard_check_pressed(vk_shift)
{
playerSpeed += 100
}
if keyboard_check_pressed(vk_control)
{
playerSpeed -= 100
}
if (playerSpeed > 300)
{
playerSpeed = 300
}
if (playerSpeed < 100)
{
playerSpeed = 100
}