I have a display group that is filled with images, I need to be able to rotate each one of these objects inside a special function which will be part of the game loop so that the image is rotating.
I have not been able to find a way to iterate through all items in the display group like so:
[lua]for item in newDisplayGroup do
if (item.type == “ball”) then
item.rotation = item.rotation + 5
end
end[/lua]
I keep getting ‘attempt to call a table value’, I’m normally a python guy so not being able to do this confuses me. [import]uid: 88429 topic_id: 17842 reply_id: 317842[/import]
[import]uid: 52491 topic_id: 17842 reply_id: 68095[/import]
