Hi,
I have a question re the collide function. In most of all cases I have to check the colission between only two sprites. But how can I check, if a sprite hits more than one sprite?
Example:
Taxi hits wall:
This is working geat.
Next exampe, Taxi is in a storm (a sprite with colission, too) and hits at the same time the wall.
This is not working:
But even the first source,
is not responding when the taxi hits the wall and the storm sprite at the same time.
How can I manage to check, if the taxi hits the wall and the storm sprite at the same time?
I thought using the bitwise-and & ...
Thanks a lot,
DirectDance
I have a question re the collide function. In most of all cases I have to check the colission between only two sprites. But how can I check, if a sprite hits more than one sprite?
Example:
Taxi hits wall:
- Code:
if (Collide(taxi$, x$, y$, nx$, ny$) == wall$)
This is working geat.
Next exampe, Taxi is in a storm (a sprite with colission, too) and hits at the same time the wall.
This is not working:
- Code:
if (Collide(taxi$, x$, y$, nx$, ny$) == wall$ & storm$)
But even the first source,
- Code:
if (Collide(taxi$, x$, y$, nx$, ny$) == wall$)
is not responding when the taxi hits the wall and the storm sprite at the same time.
How can I manage to check, if the taxi hits the wall and the storm sprite at the same time?
I thought using the bitwise-and & ...
Thanks a lot,
DirectDance