I'm trying to adjust an objects movement speed via an adjustable private variable, and just cant seem to perform this in one action.
for example, I want the action to go :
ALWAYS : set objectA Y coordinate to current objectA Y coordinate - private variable
but I cant seem to get it right, is this possible??
Develop games in your browser. Powerful, performant & highly capable.
It works here. If I do:
: Set Sprite Y to .Y + 'Variable' * TimeDelta
and 'Variable' is set to 50, it moves downwards at 50 pixels per second. Notice use of TimeDelta in the expression - it's better to use pixels per second rather than pixels per frame, because games often run at varying framerates.
thanks ash, works fine !!