animation affecting game code

Blitz3D Forums/Blitz3D Beginners Area/animation affecting game code

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

you need to assign a value above zero to entity types

try adding
global type_player=1
global type_ground=2

each entity group needs it own entitytype eg different value

btw collisions is only relative to the moving entity

Collisions type_player, type_ground, 2, 3
will only check if entity player hit entity ground
and not vice verser

add a reversed set if checking 2 entitys for collision
eg Collisions type_player2, type_player1, 2, 3
eg Collisions type_player1, type_player2, 2, 3
not forgetting to do globals at start of code :)

this also lets you work out who hit who o/