Tutorial
To succeed in creating a game, you will have to learn the basics, here is a directory chart showing how and why these they are needed in a game:
******MOVEMENT
_x: Horizintal view of movement(move from side to side), example: _x -= runSpeed/2;
_y: Vertical view of movement(move from up to down), example: _y += gravityForce;
******HITTING
_x: Position of the horizontal area where an instance is placed, example: _x = 350;
_y: Position of vertical area where an instance is placed, example: _y = 275;
hitTest(): Boolean(true/false), Determines if an instance has collided w/Something, example: character = character.hitTest(_root.enemy) ?: hp--: _x = normX;
******MATH
Math.ceil(): Rounds pronumeral/var/number defined to the highest whole number, example: Math.ceil(49);
Math.floor(): Rounds pronumeral/var/number defined to the lowest whole number, example: Math.floor(43);
Radians: An arc of a circle which is equal to the radius, or the angle measured by the arc, example: _rotation = Int(Math.PI/180*90);
List will get updated whenever I Have time…
Filed under: FLATutorials | Tagged: basics of a game, making a game, tutorials