Home | Forums | What's new | Resources | |
How to update sprite attributes? |
slinga - Dec 24, 2004 |
CyberWarriorX | Dec 24, 2004 | |||
As far as I can tell, you can also modify the direction manually: attr[6].dir = sprHflip; Cyber Warrior X |
slinga | Dec 24, 2004 | |||
Thanks CWX, it works, but with a weird warning: main.c:360: warning: large integer implicitly truncated to unsigned type. Any word on which docs you pulled this info from? Or at minimum the struct defintions? |
CyberWarriorX | Dec 25, 2004 | ||||
I got it from sl_def.h. It looks like sprHflip has a value that doesn't normally fit in dir. I'm guessing SPR_ATTRIBUTE gets around that problem by anding the value by 0x0F3F. So if you really find the warning annoying, try doing that. Cyber Warrior X |
mrkotfw | Feb 17, 2005 | ||||
try this:
Code:
|
television2000 | Oct 30, 2011 | ||||
Sorry for bumping an old thread but I'm facing the same issue and none of the posts actually fixed the problem. Maybe one of you guys got it working ? Using the Rockin-B game tutorial this is the part of the code I want to modify :
Code:
The code compiles fine but it's not working in the demo. I can't get the Sprites to Hflip. :/ Any suggestions ? |
FacundoARG | Oct 31, 2011 | |||
Hi, I saw your PM, I did a basic tutorial for sprites manipulation in www.segasaturno.com... it's a spanish web for saturn. You don't know spanish?, it's not a problem because the code is in english; you can download the code too. Tutorial... I will release the new version beta. I making a 2D engine for saturn, including tools for sprite packing and level editors. The big problem is the Sound! The posible next games are: Splatter House, Sunset Riders or Lethal Enforces I |
television2000 | Oct 31, 2011 | |||
Thank you for responding FacundoARG.
Also, this is AMAZING ! Good job ! Thank you so much for a detailed tutorial. I'll translate it np. Funny that I'm using Sonic as well for animation. I'm thinking of Maybe trying to port the CD version to saturn lol. But who knows. Looking forward to the beta version and the engine as well. |