I'm going through the tutorials and the sprites aren't displaying on screen properly... but the main problem I have is I don't understand what this is doing:
_spritedef mySprite;
And it gives me an undeclared error. Is there an h file I am neglecting to include or something? Or is this another case of the tutorials being outdated?
Also, is GenRes still the only way to load .bmp images into sprites in the latest version of SGDK?
Cheers
Issues with sprites...
Moderator: Stef
-
- Very interested
- Posts: 151
- Joined: Sun Apr 14, 2013 1:19 am
- Location: Auckland, New Zealand
- Contact:
Got it sorta working... Just not showing up as it should from the data in the array. I think I'll try with bmp sprites anyway.Stef wrote:Ah yeah, renamed to SpriteDef sorry :p
Of course plain C is definitely "not easy", and having outdated tutorials does not help neither. When you meet an error in the tutorial, try to look in the .h file which should be related to what you want to do, vdp_spr in the current case for instance...
Re: Issues with sprites...
Hi, I'm doing sprite tutorial, same error, but doesn't solve using Spritedef instead _spritedef.
Put #include "vdp_spr.h" also doesn't solve problem.
Would you be so kind to help me?
Put #include "vdp_spr.h" also doesn't solve problem.
Code: Select all
main.c|53|error: unknown type name '_spritedef'|
Would you be so kind to help me?
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: Issues with sprites...
Forget that old tutorial, just look into the 'sprite' sample in SGDK, it up to date and easier to deal with