Search found 62 matches

by cloudstrifer
Mon Apr 30, 2018 7:04 pm
Forum: SGDK
Topic: Show 30 Sprites or more [solved]
Replies: 11
Views: 1848

Re: Show 30 Sprites or more

Basicaly this is my code.
by cloudstrifer
Mon Apr 30, 2018 3:41 pm
Forum: SGDK
Topic: Show 30 Sprites or more [solved]
Replies: 11
Views: 1848

Re: Show 30 Sprites or more

It shows only first 16 sprites. Sorry, but i don't know how to inspect VRAM. Item, objects, enemy and icons are 16x16px. char01 and char02, enemy2, enemy3 are 24x40px (width x height). arrPlayers[0] = SPR_addSprite(&char01_sprite, 160, 160, TILE_ATTR(PAL1, TRUE, FALSE, FALSE)); arrPlayers[1] = SPR_...
by cloudstrifer
Mon Apr 30, 2018 1:43 pm
Forum: SGDK
Topic: Show 30 Sprites or more [solved]
Replies: 11
Views: 1848

Re: Show 30 Sprites or more

Same problem, I can't show more than 16 sprites.

I have distributed the sprites by all screen, changed priority, creating one by one by pressing buttons.
Sem títulox.png
Sem títulox.png (8.7 KiB) Viewed 1703 times

:(
by cloudstrifer
Fri Apr 27, 2018 1:22 pm
Forum: SGDK
Topic: Show 30 Sprites or more [solved]
Replies: 11
Views: 1848

Re: Show 30 Sprites or more

It shows only first 16 sprites. Sorry, but i don't know how to inspect VRAM. Item, objects, enemy and icons are 16x16px. char01 and char02, enemy2, enemy3 are 24x40px (width x height). arrPlayers[0] = SPR_addSprite(&char01_sprite, 160, 160, TILE_ATTR(PAL1, TRUE, FALSE, FALSE)); arrPlayers[1] = SPR_a...
by cloudstrifer
Thu Apr 26, 2018 5:09 pm
Forum: SGDK
Topic: Show 30 Sprites or more [solved]
Replies: 11
Views: 1848

Show 30 Sprites or more [solved]

Hi, I want to show 30 Sprites or more at once.

I have 5 (16x16 px) different sprites, is there a way to show more than 16?

Thank you!
by cloudstrifer
Wed Apr 04, 2018 2:08 pm
Forum: SGDK
Topic: Differentiate a sprite from another during comparisons [SOLVED]
Replies: 8
Views: 1325

Re: Differentiate a sprite from another during comparisons [SOLVED]

Sorry guys, the problem is sizeof function, my mistake. :oops: Thank you! int size = (sizeof(itemSprites)/sizeof(itemSprites[0])) -1; for(int y = 0; y <= size; y++) { //do get item } int size = (sizeof(objectSprites)/sizeof(objectSprites[0])) -1; for(int y = 0; y <= size; y++) { //do collisions }
by cloudstrifer
Tue Apr 03, 2018 1:59 pm
Forum: SGDK
Topic: Differentiate a sprite from another during comparisons [SOLVED]
Replies: 8
Views: 1325

Re: Differentiate one sprite from another during comparisons

I have 2 comparations one to get itens and other to collide, block passage.

But my itens have collisions.

All sprites have only one index?


Code: Select all

for(int y = 0; y <= sizeof(itemSprites) -1; y++) {
    //do get item
}


for(int y = 0; y <= sizeof(objectSprites) -1; y++) {
    //do collisions
}
by cloudstrifer
Tue Apr 03, 2018 1:23 pm
Forum: SGDK
Topic: Differentiate a sprite from another during comparisons [SOLVED]
Replies: 8
Views: 1325

Re: Differentiate one sprite from another during comparisons

I have some issues with this code below. Sprite* charSprites[2]; Sprite* itemSprites[10]; Sprite* enemySprites[10]; charSprites[0] = SPR_addSprite(&char01_sprite, 16, 112, TILE_ATTR(PAL2, FALSE, FALSE, FALSE)); charSprites[1] = SPR_addSprite(&char02_sprite, 16, 112, TILE_ATTR(PAL2, FALSE, FALSE, FAL...
by cloudstrifer
Thu Mar 29, 2018 7:36 pm
Forum: SGDK
Topic: Differentiate a sprite from another during comparisons [SOLVED]
Replies: 8
Views: 1325

Differentiate a sprite from another during comparisons [SOLVED]

Hi! I do not know how to differentiate one sprite from another during comparisons. How can I differentiate between char01_sprite and item_sprite in a FOR LOOP? // init sprites arrSprites[0] = SPR_addSprite(&char01_sprite, 160, 160, TILE_ATTR(PAL2, FALSE, FALSE, FALSE)); arrSprites[1] = SPR_addSprite...
by cloudstrifer
Sat Mar 17, 2018 7:07 pm
Forum: SGDK
Topic: Collision Box
Replies: 9
Views: 1577

Re: Collision Box

Thank you!
by cloudstrifer
Fri Mar 16, 2018 8:21 pm
Forum: SGDK
Topic: Collision Box
Replies: 9
Views: 1577

Re: Collision Box

Thank you!
by cloudstrifer
Fri Mar 16, 2018 4:45 pm
Forum: SGDK
Topic: Collision Box
Replies: 9
Views: 1577

Re: Collision Box

I would like to do something like the hitboxes and hurtboxes of Street Fighter V, and that they could be visible (for testing) or invisible.

Image
by cloudstrifer
Fri Mar 16, 2018 4:08 pm
Forum: SGDK
Topic: Collision Box
Replies: 9
Views: 1577

Re: Collision Box

Sorry for asking too much.

But please. Could you show me an example?

Where can I find the SGDK documentation?

Thank you!
by cloudstrifer
Thu Mar 15, 2018 11:54 pm
Forum: SGDK
Topic: Collision Box
Replies: 9
Views: 1577

Collision Box

Hi!
Is there any way to create a collision box without using a sprite?

Thank you!
by cloudstrifer
Thu Mar 08, 2018 7:03 pm
Forum: SGDK
Topic: Transparent WINDOW
Replies: 5
Views: 1152

Re: Transparent WINDOW

Nice!

Thank You!