GetViewport(ThisSprite.ViewportX#, ThisSprite.ViewportY#, ThisSprite.ViewportWidth#, ThisSprite.ViewportHeight#)
This won't work.
How do I work around this, without crating four new variables which are ints just for the sake of getting the values back from the function, and then assigning them to by floats?
If you're wondering why I use floats, it's because it makes sense to. If you want to increase the size of a viewport over time, then you may want to add fractional bits to the size each frame, and why should you have to store those somewhere else? That's silly.
I suppose I could access some type in Max directly to get the values without using intermediate vairables, but that's a bit rediculous, not not neccessarily safe.
Unless someone has a clever solution here, I guess you can chalk this up as another reason Var is a sucky concept.
This won't work.
How do I work around this, without crating four new variables which are ints just for the sake of getting the values back from the function, and then assigning them to by floats?
If you're wondering why I use floats, it's because it makes sense to. If you want to increase the size of a viewport over time, then you may want to add fractional bits to the size each frame, and why should you have to store those somewhere else? That's silly.
I suppose I could access some type in Max directly to get the values without using intermediate vairables, but that's a bit rediculous, not not neccessarily safe.
Unless someone has a clever solution here, I guess you can chalk this up as another reason Var is a sucky concept.