
paulo
Members-
Posts
11 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
paulo's Achievements
Newbie (1/14)
1
Reputation
-
Hi, I'm creating a game that player can walk over terrains with lots of slopes. How can I make my player rotate accordingly to the angle of the slope? This is how it's currently working: And this is how is must work (I've changed the angle manually): I'm using Box2D plugin to generate the terrain accordingly to an image. That's the reason of all these bodies. Thanks!!
-
samid737 reacted to a post in a topic: Destructible terrain + physics (walking on holes)
-
@samid737 This way looks really better. I'll try to improve it too. Thank you very much for your help!!
- 14 replies
-
- destructible
- terrain
-
(and 1 more)
Tagged with:
-
paulo reacted to a post in a topic: Destructible terrain + physics (walking on holes)
-
@samid737 We'r almost there. Now the only problem is that the collision stops working if you "cut" the objects in 2+ pieces:
- 14 replies
-
- destructible
- terrain
-
(and 1 more)
Tagged with:
-
@samid737 Soooo much better than the others, but it crashes when destroying the last part of a shape. Try destroying the bear for example. Edit: It looks that this problem is happening even with the first examples you posted here.
- 14 replies
-
- destructible
- terrain
-
(and 1 more)
Tagged with:
-
paulo reacted to a post in a topic: Destructible terrain + physics (walking on holes)
-
@samid737 it's really optimized! so faster. But there is a problem. When making some holes, some parts of the images get distorced/moved a bit. Look: Normal: With three holes: This is a real problem in the game I want to create. Do you know how to fix it?
- 14 replies
-
- destructible
- terrain
-
(and 1 more)
Tagged with:
-
Wow! That's EXACTLY what I need. Thank you very much Samid.
- 14 replies
-
- destructible
- terrain
-
(and 1 more)
Tagged with:
-
Good ideas. Imma try to do this and if I had some problem I'll back here again. Thank you!!
- 14 replies
-
- destructible
- terrain
-
(and 1 more)
Tagged with:
-
Hello, I'm trying to implement the code from this tutorial in a game I'm making. Actually I can make the holes on the texture using bitmapData. This is how I'm doing: this.bmd = game.make.bitmapData(360, 150); this.bmd.copy('ground'); //ground = image key //Makes two "holes" this.bmd.blendDestinationOut(); this.bmd.circle(50, 10, 20, 'rgba(0, 0, 0, 255'); this.bmd.circle(70, 10, 20, 'rgba(0, 0, 0, 255'); this.bmd.blendReset(); this.bmd.update(); this.ground = this.add.sprite(0, 630, this.bmd); this.game.physics.arcade.enable(this.ground); this.ground.body.allowGravity = false; this.ground.body.immovable = true; However, when I move my player, it walks like if there's no hole on the ground: How can I fix this?
- 14 replies
-
- destructible
- terrain
-
(and 1 more)
Tagged with: