kureoni
Member
so, in my game there is a store and you can buy buffs, such as movement speed increase buff etc.
right now, when you buy the buff, you gain extra movement speed, but it needs to end after some seconds, but i'm not being able to program that.
so, there is an object in the store and when you click on it, you pay 20 coins and activates an alarm:
left click code:
alarm[0] code:
step event:
(i also need to know in which event to code the move speed gain, because in the step event it gains 4 speed per frame)
so what i need now is to make the buff ends, i tried programming another alarm but it went wrong
any ideas?
right now, when you buy the buff, you gain extra movement speed, but it needs to end after some seconds, but i'm not being able to program that.
so, there is an object in the store and when you click on it, you pay 20 coins and activates an alarm:
left click code:
GML:
if global.coins >= 20{
global.coins-=20
alarm[0]=60
}
Code:
global.fast=true
step event:
GML:
if global.fast=true{
global.playerspd+=4
}
so what i need now is to make the buff ends, i tried programming another alarm but it went wrong
any ideas?