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 / Limb function for sprite?

Author
Message
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 13th Jun 2012 22:25 Edited at: 13th Jun 2012 22:27
I really nead an function that works exactly the same as the limb command in dbp

I want to place an sprite always at the top left corner on an sprite that rotates and the offset is constantly changed.
This means that the top left corner changes position on screen.
I tryed all kinds of solution but havent figured the right on out yet.

I know baxslash made one that works for sprites where the offset always is centered.

Probably a very simple solution but i have a brain meltdown

And yes its for the mode 7 engine.
One of the problems could be that set view offset and zoom is constantly changed?
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 13th Jun 2012 23:48
Cliff my version works for any offset. It works as a limb system.

My rotateSpriteAbout function sounds like what you want, when I get home from Finland I'll see if I can help you better but I posted that function somewhere...

Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 14th Jun 2012 00:23 Edited at: 14th Jun 2012 00:24
Quote: "Cliff my version works for any offset. It works as a limb system.

My rotateSpriteAbout function sounds like what you want, when I get home from Finland I'll see if I can help you better but I posted that function somewhere..."


Iam actually using it now
Works great
I had to modify the input x,y only a bit.
I grabb the karts offset position on the track and use them as negativ values.
My task whas to always keep track of the track sprites x=0 and y=0 so i can place objects on the track.
Raycasting dosent work with the mode 7 effect with scissors.

I only have to solve how to render the sprite onscreen properly

Attachments

Login to view attachments
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 15th Jun 2012 12:25
Cliff I dunno about you but I reckon you should pitch this to Nintendo and get super rich fast and don't forget us, we would all like a new Monitor each preferably 42" plasmas in full HD thank you and if possible 3 each

Login to post a reply

Server time is: 2024-04-28 09:28:49
Your offset time is: 2024-04-28 09:28:49