Search found 77 matches

by cloudstrifer
Mon Sep 23, 2019 4:03 am
Forum: SGDK
Topic: Load Custom Font
Replies: 3
Views: 1120

Load Custom Font

Hi, I need help with custom font.

Thank you!

Code: Select all

	u32 customFont = VDP_loadFont(&custom_font, DMA);		
	VDP_loadFontData(&customFont, custom_font.numTile, DMA);	
.res

Code: Select all

	TILESET custom_font "gfx/font.png" BEST
	PALETTE custom_pal "gfx/font.png"
by cloudstrifer
Wed Sep 18, 2019 6:13 pm
Forum: SGDK
Topic: NM2WCH error / crash
Replies: 2
Views: 1228

Re: NM2WCH error / crash

Thank you! :mrgreen:
by cloudstrifer
Wed Sep 11, 2019 3:12 pm
Forum: SGDK
Topic: KGens Debug
Replies: 5
Views: 1208

Re: KGens Debug

Solved random crashes and some bugs using CPU > Debug > Messages and KDebug_Alert, KLog_S1...

Thank you!
by cloudstrifer
Sat Sep 07, 2019 5:15 pm
Forum: SGDK
Topic: KGens Debug
Replies: 5
Views: 1208

Re: KGens Debug

Ok! I'm trying to fix random bugs. After 'want to write a Word' rom crashes. Please look full log. gens_KMod.rar Thank you! ... Spy:@ (9,228) 68k (@ 0x292B0) -> VRAM of 144 words from FF35F2 to F400 (VRAM access) Spy:@ (9,228) 68k (@ 0x292B0) -> VRAM of 144 words from FF35F2 to F400 (VRAM access) Sp...
by cloudstrifer
Thu Sep 05, 2019 6:10 pm
Forum: SGDK
Topic: KGens Debug
Replies: 5
Views: 1208

KGens Debug

Hi! I don't know what ' Spy:00200 Reg. 15 : an auto increment data of 0 is a bad idea! ' means. Is it critical? Lines 2, 3 and 4. Thank you! gens_KMod.log *******************rom Spy:00200 Reg. 0 : bit 2 must be 1 Spy:00001 Reg. 7432640 : bit 2 must be 1 Spy:00200 Reg. 15 : an auto increment data of ...
by cloudstrifer
Wed Sep 04, 2019 1:14 am
Forum: SGDK
Topic: Need Remove All Sprites from VDP
Replies: 9
Views: 1552

Re: Need Remove All Sprites from VDP

Thank you.
by cloudstrifer
Mon Sep 02, 2019 7:56 pm
Forum: SGDK
Topic: Need Remove All Sprites from VDP
Replies: 9
Views: 1552

Re: Need Remove All Sprites from VDP

What is shown on screen? I don't see it at screen, I see on Gens VDP sprites list (Gens > CPU > Debug > Genesis > VDP Sprites). Thank you. Errrr that's exactly what the function is supposed to do then. It doesn't matter if the table is fully cleared as long as the player doesn't see any sprites on ...
by cloudstrifer
Mon Sep 02, 2019 5:08 pm
Forum: SGDK
Topic: Need Remove All Sprites from VDP
Replies: 9
Views: 1552

Re: Need Remove All Sprites from VDP

I want do release a sprite and replace it with another sprite. Please, tell me if the code bellow is a good pratice. SPR_releaseSprite(arrRope[lastIndex]); arrRope[lastIndex] = SPR_addSpriteSafe(&rope_2_32, shootStartX_p1 + 1, shootStartY_p1 - 2 - (lastIndex * 32) - 32, TILE_ATTR(PAL1, FALSE, FALSE,...
by cloudstrifer
Mon Sep 02, 2019 5:00 pm
Forum: SGDK
Topic: Need Remove All Sprites from VDP
Replies: 9
Views: 1552

Re: Need Remove All Sprites from VDP

Sik wrote:
Sun Sep 01, 2019 6:07 pm
What is shown on screen?
I don't see it at screen, I see on Gens VDP sprites list (Gens > CPU > Debug > Genesis > VDP Sprites).

Thank you.
by cloudstrifer
Sun Sep 01, 2019 1:27 pm
Forum: SGDK
Topic: Need Remove All Sprites from VDP
Replies: 9
Views: 1552

Need Remove All Sprites from VDP

I want to remove all sprites from VDP, but i still see them.

My code:

Code: Select all

	//SPR_reset();
	//SPR_clear();
	VDP_resetSprites();
	VDP_updateSprites(0, FALSE);
	//SPR_defragVRAM();
	VDP_clearPlan(PLAN_A, TRUE);
	VDP_clearPlan(PLAN_B, TRUE);	
Can someone help me?
sprites.png
sprites.png (10.69 KiB) Viewed 1552 times
Thank you!
by cloudstrifer
Thu Aug 29, 2019 6:58 pm
Forum: SGDK
Topic: NM2WCH error / crash
Replies: 2
Views: 1228

NM2WCH error / crash

Not working anymore :(

Code: Select all

D:/SGDK/bin/nm2wch D:/Genesis/ProjetoVS/out/rom.nm D:/Genesis/ProjetoVS/out/rom.wch
NM File
nm.rar
(23.73 KiB) Downloaded 36 times
Thank you!
by cloudstrifer
Fri Aug 23, 2019 5:33 pm
Forum: SGDK
Topic: I Need tips with animations
Replies: 6
Views: 1212

Re: I Need tips with animations

Thank you!
by cloudstrifer
Fri Aug 23, 2019 12:29 pm
Forum: SGDK
Topic: I Need tips with animations
Replies: 6
Views: 1212

Re: I Need tips with animations

I want to show the defeat animation (6 frames) one time and hide the sprite.
by cloudstrifer
Thu Aug 22, 2019 8:39 pm
Forum: SGDK
Topic: I Need tips with animations
Replies: 6
Views: 1212

Re: I Need tips with animations

I found this way to make it works, i don't know if this is the best. Thanks Stef. if(arrEnemyFrame[enemyIndex] == 0) { arrEnemies[enemyIndex]->timer = 0; SPR_setAnimAndFrame(arrEnemies[enemyIndex], ANIM_PIRATE_DIE, 0); arrEnemyFrame[enemyIndex] ++; } else { if (arrEnemyFrame[enemyIndex] == (arrEnemi...
by cloudstrifer
Thu Aug 22, 2019 4:18 pm
Forum: SGDK
Topic: I Need tips with animations
Replies: 6
Views: 1212

I Need tips with animations

Hi, i need to improve my code. I need to know two things. 1 - Show an animation just one time, without loop. if(arrEnemyFrame[enemyIndex] == 0) { arrEnemies[enemyIndex]->timer = 0; SPR_setAnimAndFrame(arrEnemies[enemyIndex], ANIM_PIRATE_DIE, 0); arrEnemyFrame[enemyIndex] ++; } else { if (arrEnemyFra...