It feels like it should be not so complicated but i cant achieve the desired effect. But then i cannot register when the player is colliding with it. I tried to play around with the layer Matrix - to make the coin only be affected by ground layer for instance. object from falling to the ground or touching certain objects. If you make boxcollider "isTrigger" the coin will just fall. You will need a Scratch account to create. I want the coin just to dissapear when player hits it. The coin works like an obsticle and i dont want that. However, you can make them move to the right, left, and vice versa. For instance if my character is in the air and hits the coin it will break his momentum. When you attempt to bounce a Sprite after it touches the stage’s edge or makes a right-to-left turn, it turns upside down. When my player hits the coin he kind of bumps into it. The coin have both rigidbody2d (in order so that i can use addforce and bouncing and stuff) and Boxcollider2D (so that it will not just fall through the ground and so that it can be detected by player etc). I could achieve that, by adding force the the coins when they are created. But i want the coins to kind of splash out of the chest. I want to create chest that spits out coins when i hit it. Searched everywhere, but couldnt find the answer. Hey all! I have been trying to solve this for a day now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |