The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
49 views

How to convert strict limit in position into gradual slow down?

The player moves a spell object, the spell must stay withing a certain range of the player. The spell is moved using a physics system and it has mass and velocity. Currently when the spell goes out ...
12
votes
3answers
1k views

What are easing functions?

I found this cool website for game development and it has a list of easing functions: Although the site contains a description of what they're for, it goes over my head. What are easing ...
12
votes
3answers
579 views

How do I lerp between values that loop (such as hue or rotation)?

View Demo I'm trying to make the joint rotate smoothly around the center of the canvas, toward the angle of mouse pointer. What I have works, but I want it to animate the shortest distance possible ...
4
votes
1answer
128 views

Cubic bezier for easing?

I would like to find out what Y is if X is a certain number from a cubic bezier curve to make a custom easing function, like it's done on this site: http://cubic-bezier.com/ Does anyone know a formula ...
1
vote
1answer
74 views

Multiple concurrent Tweens

I'd like to be able to direct a game object to move to a new target position over a certain amount of time. There are lots of different easing functions available, but for now let's say I'm just ...
1
vote
2answers
122 views

Easing equations with moving end points

Usually easing equations have 4 parameters: time duration begin point end point For example: public static float EaseOutQuad(float currTime, float begin, float end, float duration) { currTime ...
0
votes
1answer
256 views

Tweening in 2d side-scrolling RPG

I'm working on a 2d side-scrolling RPG-ish game. Currently the movement of the main character(hero) is based on the A and D keys, because it's 2d and I don't really care about jumping. I would like to ...
9
votes
2answers
539 views

How do I simulate a swinging pendulum?

I want to simulate a rope with a weight attached, swinging back and forth like a pendulum. Any actual physics is overkill; it's just endlessly repeating the same motion. JQuery has a the "swing" ease ...
2
votes
2answers
148 views

Animating a background 'pulse' with easing equation

I'm trying to find a suitable easing equation (or other method) to animate an object so that it 'pulses' (imagine a 'spike' on a music visualiser, or see the image I drew badly below) 'v' is the ...
2
votes
2answers
250 views

Stop a rotating object at a specified angle?

I'm working in JavaScript with HTML5 and the canvas. I have an object which is rotating at a certain speed, and I need the object's rotation to slow down gradually and the front of the object to stop ...
2
votes
2answers
812 views

Problems using easing equations in C# XNA

I'm having some trouble using the easing equations suggested by Robert Penner for ActionScript (http://www.robertpenner.com/easing/, and a Flash demo here) in my C# XNA game. Firstly, what is the ...
3
votes
4answers
517 views

Vary speed of enemy smoothly

Hey. I'm trying to create an enemy that travels at a speed s on screen but I'm having trouble with trying to make the speed vary in a smooth motion. Basically, I can get the enemy to move at a ...
9
votes
2answers
1k views

Easing Functions

I started to involve myself with easing functions (Flash AS3), came about in trying to understand TweenLite and Robert Penner's website: http://www.robertpenner.com/easing/ The question I have is ...