Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 7th_zorro), 1,203 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Sprite Rotation Glitch #416110
01/28/13 03:14
01/28/13 03:14
Joined: Jul 2009
Posts: 85
A
Altarius Offline OP
Junior Member
Altarius  Offline OP
Junior Member
A

Joined: Jul 2009
Posts: 85
Hi,

I taked a look at the 2d game exemple in AUM 83 and i am wondering why the pixel on sprite used for the character seem to deform when the sprite rotate.

Ive trying a couple another image format.. always the same thing.. maybe the engine are just bad whit 2d?

Re: Sprite Rotation Glitch [Re: Altarius] #416111
01/28/13 03:23
01/28/13 03:23
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
The engine is perfectly fine with 2d. Please describe your problem in more detail. It's not even clear what you're exactly talking about. A sprite usually is an entity, but the workshop mostly talks about panels. Apart from that I cannot spot anything deformed in that workshop. A screenshot might help to make your problem clearer.


Always learn from history, to be sure you make the same mistakes again...
Re: Sprite Rotation Glitch [Re: Altarius] #416113
01/28/13 03:46
01/28/13 03:46
Joined: Jul 2009
Posts: 85
A
Altarius Offline OP
Junior Member
Altarius  Offline OP
Junior Member
A

Joined: Jul 2009
Posts: 85


I have rotated the left one at runtime using:

char_pan.center_x = char_pan.size_x * 0.5;
char_pan.center_y = char_pan.size_y * 0.5;
char_pan.angle = 2 * (key_cur - key_cul) * time_step;

So what wrong.. the rotated one look horrible.


Last edited by Altarius; 01/28/13 08:14.
Re: Sprite Rotation Glitch [Re: Altarius] #416163
01/28/13 14:38
01/28/13 14:38
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
That indeed looks pretty ugly. Looks like you haven't set the FILTER flag for the panel. Thats how it looks for me:



Always learn from history, to be sure you make the same mistakes again...
Re: Sprite Rotation Glitch [Re: Uhrwerk] #416265
01/29/13 20:52
01/29/13 20:52
Joined: Jul 2009
Posts: 85
A
Altarius Offline OP
Junior Member
Altarius  Offline OP
Junior Member
A

Joined: Jul 2009
Posts: 85
Cool! that work well now whit FILTER flag.

Thx a lot.

Re: Sprite Rotation Glitch [Re: Altarius] #416267
01/29/13 21:21
01/29/13 21:21
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
I'm glad I could help.


Always learn from history, to be sure you make the same mistakes again...

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1