Posts Tagged ‘Beginners’
 

mousecontrols
11
comments
Tutorials

AS3 Character Movement: Follow the Mouse Controls

Posted February 25, 2009 by Par

This is another tutorial in the character movement series. So far on AS Gamer we’ve discussed different ways to move your game’s hero with the keyboard. Today we are going to discuss how to move your player with the mouse. There’s a few ways this can be done, we can set a default speed that our character always moves at or create movement controls where our character eases into the new position. Both movement styles are extremely useful it just depends on which mouse movement method you are wanting to use for your game. First we’re going to talk about controlling the character at a steady speed following our mouse.

Full Story »

quicktipimage
17
comments
Quick Tips

Using String Variables to Call Functions in AS3

Posted March 18, 2009 by Par

Have you ever wanted to use a string variable to call a function? Or combine two completely different strings together to form a function name then call it. Okay, that last bit probably not so much. But if you ever do decide to do it, this tutorial will show you how. It’s all about making strings call functions.

Full Story »

quicktipimage
6
comments
Quick Tips

Quick Tips: AS3 Hiding/Showing the Mouse

Posted February 26, 2009 by Par

Trying to figure out how to hide and show the mouse in as3? It’s simple here’s the deal.

Full Story »

thumbnail1
20
comments
Tutorials

AS3 Character Movement: Helicopter Games

Posted February 22, 2009 by Par

There are tons of games that involve character movement and controls and because one of the most popular tutorials on AS Gamer at the moment is about movement… I figured it was time to discuss a variety of movement methods. The first one we are going to discuss is Helicopter game movement. Everybody has played those helicopter games where you have to fly the helicopter through a maze without crashing. Well today we’re going to learn how to make that helicopter move the way it does.

Full Story »

mousecontrols2
9
comments
Tutorials

AS3 Character Movement: Following Mouse with Easing

Posted February 27, 2009 by Par

Honestly this is an addendum to the previous tutorial in this series. This is a simple adjustment to the code we have already wrote but it will give us character movement that eases towards the mouse position instead of keeping a constant speed. It’s a relatively useful effect, I used it in one of my games, Entropy, for the opponent’s paddle movement. So here we go, let’s make our character follow the mouse easing its way into the position.

Full Story »