|
Post by TheMVRules on Aug 9, 2010 14:04:52 GMT -5
Create one. The best way for collision is to create a hitbox.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 31, 2010 20:55:01 GMT -5
Hitbox? Is that code like this to determine a collision?
collide_boss if player0x < player1x then if player0x > (player1x+16) then goto col_boss_stage2 else return col_boss_stage2 if player0y < player1y then if player0y > (player1y-16) then gosub draw_hit return
I know I've bumped old topics before but the broken collision routines in BasiEgaXorz is bad news for newbies like me. Some say every game has different collision requirements but I hope someone will post a generic coordinate based example someday. If the hardware detection is sketchy may as well have a workaround available for beginners!
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 1, 2010 6:27:04 GMT -5
@theloon Almost no games make use of hardware sprite collision detection, and with good reason ( Strider II does, and it's awful ). Let us know what kind of game you're creating, and I'm sure someone will help you out with a specific solution
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 1, 2010 12:02:18 GMT -5
It's just a top-down Atari Adventure clone.
The code I posted is sorta pseudo code. Just trying to find out the best way to calculate a collision between two sprites by their x and y coordinates.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 1, 2010 12:57:12 GMT -5
Read this. If you can't get it to work .. let me know
|
|