Theres no need at all. They compilicate code and make it far harder to debug and learn.
A pro's 360 tutorial i downloaded set the current aa x pos to value a and then set the alterable value a to (aletrable value a + (sin alterbale value b * speed)) and then set the x pos to to value a!!! (its clever~ish using the event sequnce but it still sucks)
This totally stinks and is poor klikking, i can understand it but a noob has as much chance as a snowball in hell.
why not
always
set x pos to current x pos + sin(angle counter * speed counter)
Done nice and easy...
This annoyed me so much I am going to start writing my own 360 tutorials using normal counters and not alterbale values for everything.
So i call for no more alterbale values in movement tuts (unless its for ai players then its acceptable ).
The system you mentioned is entirely intentional. An X co-ordinate or Y co-ordinate can only be an integer value. Since trigonometry deals with floats, the result is rounded off to a whole number so it can go to that co-ordinate. This can mean loss of accuracy in the movement, or it not working at all. Alterable values can store floats accurately so that's why the example stored the float position in an alterable value, then set the coordinate to what was in the alterable value.
• They can store decimal numbers (positions can't, try it next time before you complain)
• They're unique for each instance of the object, so it's easy to duplicate a movement across lots of objects. Try that with counters.
• You can rename them, so there should be less confusion than using a counter instead
Now give me a good reason to use counters instead...
Yes of course a monitor has subpixels, silly me. I'll remember not use my 1024.678 x 768.123 resolution again!, I must set the position to a floating point value...
And of course TGF can do decimal points in Alterable values, they must be majic...
Sorry for the sarcasm but my 360 engines in TGF work just as good
Can't you still use a decimal system in TGF if you use the Advanced Math object's decimal offset?
Either way, storing a full decimal value rather than rounding to an integer at every step will always be more accurate, and sometimes that's very important. Your TGF engines will still work fine, but that doesn't mean they're the peak of accuracy and efficiency.
Well im not sure what movement your talkin about but for platform movement I only use 1 value. I just use the regular platform engine and use one value for head collisions and in maybe 4 total events or so I can make a platform movement that works better than custom platform movements ive seen in other games and custom movements ive made myself that use tons of events.
Well...if we're being really 'nerdy', I heard from someone that alterable values take up more memory than counters, because you're having to keep track of the activ object as well as the value. So if optimization is your middle name , then you might want to use counters instead. Or a numerical array in MMF. Anyway, you should use counters whenever possible in tutorials, to make them easier to understand.
Arf - "Can't you still use a decimal system in TGF if you use the Advanced Math object's decimal offset?"
Sort of. You can move the decimal offset of the object, so that all calculations have their decimal places shifted. For example, a decimal offset of 3 would change 0.707 to 707 (10^3). You retain most of the accuracy, just with larger numbers. To position an object correctly from here, you would set the X and Y to these large values, divided by 10 to the decimal offset. Or alternatively, you can move the object 1 pixel for every 10/100/1000 (whatever), and keep whatever's left over for the next move. So long as the 'precise' values are stored in counters, rather than relying on the object's current position.
Also...I've actually made a tutorial in TGF that does basic 360 degree movement, without alterable values. Don't know if anyone would be interested...? (I don't think it's worth making a download, myself)
What stand do you have to say a pointless arguement kirby, pretty much every post you have is uninformative, annoying, and it screams newbie. Do you even click?!
"Everytime you use Kazaa, a metallica band member dies a little."
Quote Jonathon Smeby.