Diddy? ox, oy?

Monkey Forums/Monkey Programming/Diddy? ox, oy?

Amon(Posted 2012) [#1]
When using didy's virtual resolution do I set the coords using x,y and then move the image using ox, oy?


therevills(Posted 2012) [#2]
The Sprite fields ox and oy are to be used by developers to store extra coordinates (eg the original starting position).

Once you set the virtual resolution you "should" be able to forget about it and code as normal (using x and y).


Grey Alien(Posted 2012) [#3]
Yes I added ox,oy to my framework (which I believe diddy is loosely based on) to store the original coords of the sprite so that you could vary the display x/y with weird algorithms (such as particles falling like snowflakes)


therevills(Posted 2012) [#4]
which I believe diddy is loosely based on


;)


Grey Alien(Posted 2012) [#5]
I should say "parts of diddy" because wow it has grown into quite an epic thing! I was checking out all the parts at the weekend. So much special code needed for the different OSes.


Amon(Posted 2012) [#6]
Thanks all! Yep diddy has become the main framework to use for Monkey!


Paul - Taiphoz(Posted 2012) [#7]
I agree Amon i'ts brilliant, made getting into monkey a lot easier for me I was kinda struggling at the start.