Here is the example:
(Disclaimer: I am NOT an artist)
https://drive.google.com/file/d/0B-xiqK ... sp=sharing
Also, note this will only work for 2-way matching. If you have to match 4 or more, the Array object won't work for you.
I guess I am not clear on what you are trying to do. You want to create a 2nd sprite at the mirror angle at the same time as your first sprite?
What you are looking for is called "parallax," and it is a layer specific property.
I am actually dreaming about it... I wake up in a cold sweat thinking about arrays and how to input the information
I actually do that too, lol. I solve some of my more complicated problems in my sleep. I'll make up an example when I have more than 5 mins to spare... maybe later today or tomorrow.
No, like an arbitrary, unique identification number to distinguish you from, say, Player Joe?
Haha kinda funny to see such an old thread. Yeah, so I got the angle expression wrong in 2008. I do apologise. Hopefully I got it right for the last eight years instead XD
It is still kind of wonked... fortunately the angle to position method on the TiledBackground seems to work much better.
Thelegendvinny If you ever get an optimization working, let me know please.
Zoom & pan example:
Did you try rexrainbow 's Z sorter ? (also takes X in acccount) http://c2rexplugins.weebly.com/rex_zsorter.html
Did you try rexrainbow 's Z sorter ? (also takes X in acccount)
http://c2rexplugins.weebly.com/rex_zsorter.html
Clearly, I need to use this. I have been manually sorting, lol.
Can you link a relevant Youtube video? I've never played this game.
You need to first look up the API for each social media outlet that you want to use, then create your AJAX to submit whatever data you want to submit to them. Then you create a nice image (or borrow one) and create click events for each one.
Like Facebook's API:
https://developers.facebook.com/docs/public_feed
You have a player id?
So your angle range is centered on 270? So you just take the current random angle, subtract 270 and subtract that value from 270 to get the mirror angle.
That will mirror your object around 270.
Now I understand. Thanks for making it very clear. I didn't know the indexes start at zero so I had a great confusion about how it works. Thanks again!
Now I understand. Thanks for making it very clear. I didn't know the indexes start at zero so I had a great confusion about how it works.
Thanks again!
Yea, that is a computer science thing. We (almost) always start at 0. Don't ask me why...
Develop games in your browser. Powerful, performant & highly capable.
Did you try using a linear equation? You keep bumping this without actually trying to solve it yourself, it seems.