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.

AppGameKit Classic Chat / Sprite linked,group, joint

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 6th Jul 2014 11:35
Hi

I'm looking for a method to "group" or attach 2 sprites (or more), so if I move the sprite1, the sprite2 move too. If I rotate the sprite1 (aroundhis offset), the sprite2 is rotated around the offset of the sprite1.

It's to create a sort of spine/bones system for 2D.

Thank you for your answer.

http://www.dracaena-studio.com
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 5th Sep 2014 02:28
This example is for Dbpro, but I suppose that you can do the same in AppGameKit .




Cheers.

I'm not a grumpy grandpa
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 5th Sep 2014 14:33
I have some code for this buried in the free library that comes with my own system called SpriteFX.

It's not terribly complicated but it does get a little more complicated if you start thinking about flipping a character in the X direction (for example).

You're welcome to use my system for reference and any of the code in the include file for your own purposes. I found I can run up to about 8 characters of medium complexity at any one time compared to about 30 characters using Spine in V2. As for explaining the code I'm happy to help although it's been quite a while since I made any changes to SpriteFX.
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 5th Sep 2014 14:48
@baxslash
I hadn't seen this before ! Great tool ...Thanks for the link

I'm not a grumpy grandpa
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 5th Sep 2014 19:54
It's a little clunky and not easy to use but I have been able to successfully add fully animatable characters that new animations can be easily added to. Hope you find it useful!

Login to post a reply

Server time is: 2024-11-25 09:39:10
Your offset time is: 2024-11-25 09:39:10