tshirtbooth said: YA interpolate is one of the best things in GS
Only thing to keep in mind is that it can not be interrupted. Other then that its perfect ____________________________________________________________________________ </blockquote
so suppose I have some sort of health bar that goes down as time passes by. But if I grab a fruit the health bar will increment a bit. Normally i'd use a timer that decrements the width attribute of the health bar every x seconds and If I grab a fruit I will increment the width attribute.. if instead of the timer I use interpolate to decrement the width of the health bar.. will the interpolate attribute care that I'm eating fruit and incrementing sometimes the width or will just go to cero no matter is sometimes (when I eat the fruit) the width attribute increments
I think it was JohnPapiomitis told me that he no longer uses booleans. He uses integers and puts them at 1 or 0 for true/false statements. It allows for more flexibility and you can Interpolate those between 1 and 0.
DrGlickert said: I think it was JohnPapiomitis told me that he no longer uses booleans. He uses integers and puts them at 1 or 0 for true/false statements. It allows for more flexibility and you can Interpolate those between 1 and 0.
Could you please explain your last sentence? Moreover: Shirtie said that Interpolate can't be interrupted. So if I use the pause function, will the interpolation go on? Thanks.
say you have something interpolating to its x to 400. once the interpolating has started, you cant stop the movement half way by switching a attriubte or such
to add to what doc said about intergers vs booleans, booleans work great and look clean, but alot of things i find intergers better for and can use them to trigger other events instead of having extra atributes and constrain and a timer
for example if u had a unlocked actor that you wanted to trigger something when something elses position is whatever , and do something else a certain amount of seconds after
instead of having another atteribute and constraing to the position having a rule when attribute is equal or less then
and having a rule when attribute = whatever, timer after .5 seconds do whatever;
you could do when attribute scene layers player position is = or greater to whatever interolate attrribute to one and have another rule when attribute=.5 do whatever
that right there will cut out oneconstrain and timer, which will help a ton when used alot
Comments
"TIMERS! Be gone!"
Now, in my 2nd game, I WILL use Interpolate to move actors!
Moreover: Shirtie said that Interpolate can't be interrupted. So if I use the pause function, will the interpolation go on?
Thanks.
for example if u had a unlocked actor that you wanted to trigger something when something elses position is whatever , and do something else a certain amount of seconds after
instead of having another atteribute and constraing to the position
having a rule when attribute is equal or less then
and having a rule when attribute = whatever, timer after .5 seconds do whatever;
you could do when attribute scene layers player position is = or greater to whatever
interolate attrribute to one
and have another rule when attribute=.5 do whatever
that right there will cut out oneconstrain and timer, which will help a ton when used alot