Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 77195

A simple term for "translation", the change of position of an entity typically on the route of going from point A to point B.

1 vote
Accepted

Making Minecraft in 2D. Blocks move when player moves

second++){ rectangle = new Rectangle(xb[first], yb[second], 50, 50); blockList.add(rectangle); } } */ } public void keyPressed(KeyEvent e) { if (...) { // Movement
Charanor's user avatar
  • 8,203
1 vote
Accepted

Switching lanes in an endless runner

Number 1 should have a pretty simple fix (pseudocode): // destination and position are Vector2s float TRANSITION_SPEED = 0.5f; // How long it takes to move between lanes float DISTANCE_BETWEEN_LANES …
Charanor's user avatar
  • 8,203
38 votes

How can I make user-friendly polar coordinate movement around a circle?

My first suggestion would be to just stick with A = Counter-clockwise and D = Clockwise movement. … It is not very confusing and is pretty much the "standard" (i.e. most common) choice when it comes to orbital movement like this. Another way would be to change the way your game moves. …
Charanor's user avatar
  • 8,203
0 votes

How to apply friction vector to acceleration in top-down 2D game?

It looks like you're using acceleration in a weird way in your engine, so I can't give you a 100% fool-proof answer you can directly implement into your code, but I can take a shot at it. You'd want …
Charanor's user avatar
  • 8,203