Collision Box
Moderator: Stef
-
- Very interested
- Posts: 118
- Joined: Mon Feb 19, 2018 7:31 pm
Collision Box
Hi!
Is there any way to create a collision box without using a sprite?
Thank you!
Is there any way to create a collision box without using a sprite?
Thank you!
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: Collision Box
Nothing prevent you to use the 'Box' structure and do whatever you want with it =)
-
- Very interested
- Posts: 118
- Joined: Mon Feb 19, 2018 7:31 pm
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!
But please. Could you show me an example?
Where can I find the SGDK documentation?
Thank you!
Re: Collision Box
I think he wants to display a box corresponding to the bounding box into the screen.
On MD you can only display things through sprites or tiles, to display a box with tiles is doable but very hard and will invalidate any work you have done before with them. So only remains doing it with sprites.
Another possibility is to have you game also running in you favourite OS.
On MD you can only display things through sprites or tiles, to display a box with tiles is doable but very hard and will invalidate any work you have done before with them. So only remains doing it with sprites.
Another possibility is to have you game also running in you favourite OS.
HELP. Spanish TVs are brain washing people to be hostile to me.
-
- Very interested
- Posts: 118
- Joined: Mon Feb 19, 2018 7:31 pm
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.
Re: Collision Box
Yeah! is what I thought you meant.
The only viable option is sprites or to make you code run also on Windows/Linux/Mac/Whatever.
The only viable option is sprites or to make you code run also on Windows/Linux/Mac/Whatever.
HELP. Spanish TVs are brain washing people to be hostile to me.
-
- Very interested
- Posts: 118
- Joined: Mon Feb 19, 2018 7:31 pm
Re: Collision Box
Thank you!
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: Collision Box
Oh sorry, i though you just wanted collision box in code ^^
So yeah as Miquel said, no other way than wasting some sprites for that.
So yeah as Miquel said, no other way than wasting some sprites for that.
Re: Collision Box
If you want something relatively cheap, you can do like Sonic Pocket Adventure's debug mode, where only the corners are shown. You need four sprites for this (one for each corner, same graphic but flipped over in each of them), but they can easily adjust to any box shape as long as the box isn't tiny.
Sik is pronounced as "seek", not as "sick".
-
- Very interested
- Posts: 118
- Joined: Mon Feb 19, 2018 7:31 pm
Re: Collision Box
Thank you!