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 / drawObject ? where is it?

Author
Message
haliop
User Banned
Posted: 30th Jul 2013 04:55
???
if it dosent exist
is thee a way to control a sprite rotation like in 3d? XYZ?

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 30th Jul 2013 09:22
hmm, at x or y axis you can scale it small upto 0 and scale it normal with cosinus.
the 2d view is Orthogonal.
maybe you can combine a 3d sqare in 2d, i saw someone use it in a 2d side scrolling shooter.
haliop
User Banned
Posted: 30th Jul 2013 09:28
hmmm... what? sorry i slept only 3 hours since tried to figure it out..

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 30th Jul 2013 13:47
mean this:


haliop
User Banned
Posted: 30th Jul 2013 15:02
AWESOME that is exactly what i needed thank you!
i should really go and learn some math.

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 30th Jul 2013 15:14
hehe, is more fantasy than math what you need
haliop
User Banned
Posted: 30th Jul 2013 15:15
however!!!!!
when i rotate it on the Y axis with the same values
when it goes all the way down it suddenly instead of being upside down is the same as the first frame..

haliop
User Banned
Posted: 30th Jul 2013 15:21
like ive attached an image with a simple man texture
when the head gets to 0 point where you hardly see the sprite i assumed it would go -1 so the head will be lower then the body like a flip state..

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 30th Jul 2013 15:51 Edited at: 30th Jul 2013 15:52
the sprite only have a front side, you can use two sprites
and remove the abs and add 180° at the second sprite or you use
SetSpriteFlip at 90 degree.

(at a negative scale the sprite was invisible.)

Login to post a reply

Server time is: 2024-05-02 01:26:52
Your offset time is: 2024-05-02 01:26:52