{"action":"opened","issue":{"url":"https://api.github.com/repos/DaVikingCode/Citrus-Engine/issues/251","labels_url":"https://api.github.com/repos/DaVikingCode/Citrus-Engine/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/DaVikingCode/Citrus-Engine/issues/251/comments","events_url":"https://api.github.com/repos/DaVikingCode/Citrus-Engine/issues/251/events","html_url":"https://github.com/DaVikingCode/Citrus-Engine/issues/251","id":60086996,"number":251,"title":"Curious about CitrusObject.as, whether it may be a little too light? here's why-","user":{"login":"SnkyGames","id":7985031,"avatar_url":"https://avatars.githubusercontent.com/u/7985031?v=3","gravatar_id":"","url":"https://api.github.com/users/SnkyGames","html_url":"https://github.com/SnkyGames","followers_url":"https://api.github.com/users/SnkyGames/followers","following_url":"https://api.github.com/users/SnkyGames/following{/other_user}","gists_url":"https://api.github.com/users/SnkyGames/gists{/gist_id}","starred_url":"https://api.github.com/users/SnkyGames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SnkyGames/subscriptions","organizations_url":"https://api.github.com/users/SnkyGames/orgs","repos_url":"https://api.github.com/users/SnkyGames/repos","events_url":"https://api.github.com/users/SnkyGames/events{/privacy}","received_events_url":"https://api.github.com/users/SnkyGames/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-06T10:53:19Z","updated_at":"2015-03-06T10:53:19Z","closed_at":null,"body":"Just a thought.. I know I went a bit over the top making CitrusObject.as extend SnkyObject.as, but, let's take a physics engine object and a citrussprite for example, if these two were stored in the same array, how would one access the x and y values via array[ i ].x/y? If the only common parent is CitrusObject. ( so sorry if there's a way to do this and I'm just too stupid xd )\r\n\r\n---my solution for this was, array of snkyobjects---\r\nClose to my final version, of the extra garbage I want every object whether sprite or nape to have.\r\nhttps://www.dropbox.com/s/l7la8l1t1q2pcta/SnkyObject.as?dl=0\r\n( the alpha / scale / rotation came in great use, as after setting these vars, you can do art.alpha = _alpha, etc in the handleartready function, so it's like, being able to initialise the alpha / scale / rotation / colour of the art automatically and dynamically without that one frame delay error if you were to try this before the art was ready?? Sorry if I made that sound confusing )\r\n\r\nSo hm, yeah, I hope this was a worthy mention, I just believe that a 'physicsobject' and a 'citrussprite' are from two completely different worlds, and are very incompatible with each other!\r\nThanks\r\n\r\n-------------\r\nI think I'm trying to suggest shifting a lot of common variables into citrusobject, that are present in a physics object and a citrus sprite.\r\n"}}