1 decade ago by Sidmama
I new to Impact and I seem to have gotten stuck!
The concept for the game is that there are falling objects of varying sizes and the player needs to catch these objects using a basket. I have used spawnEntity to create these falling objects. At random time intervals, these objects fall and need to be caught. For Level 1 there are a total of 40 objects to be caught.
The problem is some of the objects pass through the basket.
Initially I had used collideWith but the detection of object hitting the basket rate was lower. Next I used touches and it worked better but still a few objects pass through the basket. The behavior seems random - I cannot pinpoint when the object gets caught when they don't.
I have set the falling object as COLLIDES.ACTIVE and the basket as COLLIDES.FIXED.
Any ideas on this?
Also, I wanted to know do the entity assets have to be sized as multiples of the Tilesize (8, 16, etc..) or they can be of any size?
The concept for the game is that there are falling objects of varying sizes and the player needs to catch these objects using a basket. I have used spawnEntity to create these falling objects. At random time intervals, these objects fall and need to be caught. For Level 1 there are a total of 40 objects to be caught.
The problem is some of the objects pass through the basket.
Initially I had used collideWith but the detection of object hitting the basket rate was lower. Next I used touches and it worked better but still a few objects pass through the basket. The behavior seems random - I cannot pinpoint when the object gets caught when they don't.
I have set the falling object as COLLIDES.ACTIVE and the basket as COLLIDES.FIXED.
Any ideas on this?
Also, I wanted to know do the entity assets have to be sized as multiples of the Tilesize (8, 16, etc..) or they can be of any size?