Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / multiple 2D objects scaling and moving in concert and then rotated

Author
Message
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 8th Jan 2016 00:47
i have a number of separate sprites. some scaling and some moving (animations) in concert.
i want to take all those moving/scaling sprites and tilt them say 5-10 degrees around a defined point (bottom center)
what would be the best approach for that?
is there such a thing as a container object or something like that?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 8th Jan 2016 11:00
I would cheat
I would use the 2D Physics commands and createWeldJoint() to glue them together. Then rotate the sprite that represents the centre point (which might be a invisible sprite).
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 8th Jan 2016 21:51 Edited at: 9th Jan 2016 01:12
i'm not having much luck. could you point me in the right direction here please?
thanks

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-25 06:04:13
Your offset time is: 2024-04-25 06:04:13