Flash

ActionScript 3 Car Movement with fuel

car movement actionscript 3

In today's post I will show the code for the movement of a car in actionscript 3. It has a fuel counter that can refuel. See live example clicking here You can download all the files clicking here Movement.as package { import HitTest; import flash.display.MovieClip; import flash.events.Event; import flash.events.KeyboardEvent; import flash.utils.*; public class carMovement extends MovieClip{ var combustible:Number=200; var a:Number = 4; var vx:Number = 0; var vy:Number = ...

Read More... "ActionScript 3 Car Movement with fuel"