Tagged Questions
0
votes
2answers
110 views
Increasing speed of circle over time as linear with Box2d
Assume that there is a circle and it can be moved by using keyboard arrows.Is required that increasing speed over time like increasing car speed. For example; max speed is 25 and time to reach max ...
1
vote
2answers
292 views
Non-physics character movement in a Box2d Environment
I am in the process of creating a physics platformer. However, I want the player movement to feel very old-school(as in: non-physics like), which means that the character:
Should always move equally ...
1
vote
2answers
287 views
Moving player in Box2d without forces
How do I move player with keyboard without applying forces? If I do playerBody.setLinearVelocity(new B2Vec2(0, 2)) it moves the player but when I release the key for movement, the ball is continuously ...
2
votes
1answer
437 views
Stopping on a slope in Box2d
I am creating a simple platformer using Box2d. I've implemented a variant of the technique described here.
To make the player character move more 'platformer-like' I want him to stop on (shallow) ...
2
votes
4answers
3k views
box2d and constant movement
i'm developing a game with a top down view, the players body is a circle. To move the character you need to tap on the screen and it moves to the spot.
To achieve this i'm saving the coordinate of ...
2
votes
1answer
1k views
Speed of bodies in Box2D and libgdx
I want to move my bodies at higher speeds, but they have a top speed.
I have an Ortoghraphic camera defined at 800x480.
My world doesnt have gravity.
I apply an impulse of 1000,and a force of 1000 ...
1
vote
1answer
441 views
Handling player/background movements in 2D games
Suppose you have your animated character controlled by the player and a 2D world (like the old 2D side-scrolling games). When the user presses right on the keyboard, the background is moved to the ...
4
votes
4answers
1k views
Make player to always move along the terrain
I'm working on a 2D platformer side scroller game. I am giving high impulse to player, the player starts moving and if it hits a slope on terrain, it gets a vertical movement and starts to fly over ...