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. If you make boxcollider "isTrigger" the coin will just fall. I want the coin just to dissapear when player hits it. ![]() The coin works like an obsticle and i dont want that. For instance if my character is in the air and hits the coin it will break his momentum. When my player hits the coin he kind of bumps into it. Scratch is a visual programming environment where you design/create your interactive stories, games & animations. 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. In this way, weve created 20 frames of animation, which when flipped through quickly, create the apparent motion that the ball is bouncing. 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 |