using an attribute as a speed bug?
Anyone else try this?
Create an actor
Create a game level attribute called "movespeed"
In your actor add a rule :
>>change velocity (180 reletive to scene)
>>game.movespeed
Manually set "movespeed" to 50 and hit play
the actor will move left at speed 50
Now, go and set "movespeed" to 0
then in actor 1, add a rule
>>Change attribute
>>game.movespeed to 50
now hit play, and the actor doesn't move, even though movespeed is 50 as before, but set in a rule rather than manually in the attribute list.
or am I being a bit dim?
Create an actor
Create a game level attribute called "movespeed"
In your actor add a rule :
>>change velocity (180 reletive to scene)
>>game.movespeed
Manually set "movespeed" to 50 and hit play
the actor will move left at speed 50
Now, go and set "movespeed" to 0
then in actor 1, add a rule
>>Change attribute
>>game.movespeed to 50
now hit play, and the actor doesn't move, even though movespeed is 50 as before, but set in a rule rather than manually in the attribute list.
or am I being a bit dim?
Comments
I was sure it was just me and left it - will look at it again later (though this was happening in .92 as well for me)
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
edit: ah..I wasn't using rules just behaviours
So if I set it manually to 50, but then have a rule in an actor that sets it to 200...it displays (using a display text) as 200, but is actually using the 50. Same behaviour when using a constrain instead of a change too.
meh.
bang on mate. Shifted the change to the top and it works.
new "problem" though.....
if I have the change velocity on 1 actor (a game controller actor for example), and the change attribute on a different actor.
it doesn't work.
This is pretty important to be able to do, as I quite often have an actor in the scene that controls things like game speeds, and spawn speeds and whatnot.