Hi guys! It's all good
I'm having difficulty using the SGDK collision
From what I read in the documentation and I understand it's a Union, but I do not quite understand how to apply it in the code.
Can anybody help me ?
I just want to understand how 2 sprites can collide using this sgdk feature
Thanks in advance
Collision sprites help
Moderator: Stef
-
- Interested
- Posts: 19
- Joined: Mon Jul 03, 2017 2:23 pm
- Location: Sao Paulo -Sp
- Contact:
Collision sprites help
The Mega Drive Will Never Die In Our Hearts.
Project Leyria RPG for Sega Mega Drive / Genesis
https://gendev.spritesmind.net/forum/vi ... php?t=2728
Project Leyria RPG for Sega Mega Drive / Genesis
https://gendev.spritesmind.net/forum/vi ... php?t=2728
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: Collision sprites help
Unfortunately Collision support is not completed in SGDK, so you have the structure but no method to use it yet :-/
So in the meantime you have to handle that with your own structure and code.
So in the meantime you have to handle that with your own structure and code.
-
- Interested
- Posts: 19
- Joined: Mon Jul 03, 2017 2:23 pm
- Location: Sao Paulo -Sp
- Contact:
Re: Collision sprites help
OK. I understand, so I'm putting the structure and it does not work ........ kkkk
Thank you for answer Stef
Thank you for answer Stef
The Mega Drive Will Never Die In Our Hearts.
Project Leyria RPG for Sega Mega Drive / Genesis
https://gendev.spritesmind.net/forum/vi ... php?t=2728
Project Leyria RPG for Sega Mega Drive / Genesis
https://gendev.spritesmind.net/forum/vi ... php?t=2728
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: Collision sprites help
You can actually use the collision structure of SGDK ut i think it would be more straightforward to design your own, with your own collision code
Re: Collision sprites help
It's just four compares if rectangles, or two if circles. Check Internet there are billions of examples.
HELP. Spanish TVs are brain washing people to be hostile to me.