Questions tagged [actionscript-3]

Adobe ActionScript is the open source multiparadigm language supporting object oriented, imperative, structural and functional programming and used within Adobe Flash Platform. ActionScript 3 is a dialect of ECMAScript, targeted for Adobe Flash Player 9 and higher.

Filter by
Sorted by
Tagged with
3
votes
1answer
427 views

AS3 move object to a point

I'm trying to make a room full of monster each side and the player stay in the middle. I have a problem, I don't know how I move each monster to the player and rotate each of them to face the player, ...
0
votes
3answers
126 views

Camera and enemy behaviour in AS3 platformer

beginner in AS3 here. I am working on a platformer game based on the code of a provided example exercise. I have the following problem: I have an enemy who shoots bullets. The enemy is the parent, ...
1
vote
2answers
2k views

Looking for a good actionscript 3 book [closed]

I've been looking for a book on actionscript3 development, but while there's tons of books out there, nobody seems to want to recommend any specific one. One book I've been pointed towards is the ...
13
votes
4answers
25k views

How to detect 2D line on line collision?

I'm a flash actionscript game developer who is a bit backward with mathematics, though I find physics both interesting and cool. For reference this is a similar game to the one I'm making: Untangled ...
0
votes
2answers
898 views

Enemy collision detection with movie clips

I have created multiple movieclips with animations within them. It is an obstacle avoidance game and I cannot seem to be able to get my enemies to contact my ...
10
votes
4answers
3k views

How to build a bones animation engine?

I want to develop a flash game. It would draw a stick man, and edit his pose. I think what I need to learn are bones animation and physics engine. Can anyone introduce some good resources to learn ...
0
votes
2answers
19 views

Is there any way to change the layering of objects in Actionscript 3 without altering the run order?

I'm making a simple platformer in Adobe Animate, and I need the player to be layered in front of the stage because of a gimmick in the game. Unfortunately, whenever I change the layering order, it ...
1
vote
1answer
30 views

Reversing translational dependency of Sprite on Mouse instantaneously at runtime without causing the sprite to jump

Help me think through a logical way to implement the desired effect. Goal: (I'm using Adobe Animate CC 2017 targeting AIR for Desktop) Move a sprite using a controller (mouse on a PC for instance) ...
0
votes
1answer
49 views

lineStyle removed after colorTransform

I have these shapes with a lineStyle to outline the shapes, however, when I tried to do colorTransform, it will completely remove the outline of the shapes. Is there a way to make lineStyle constant? ...
3
votes
3answers
1k views

Moving objects in a circular path, and also moving the whole group

I have eight elements distributed in a circle, with a common center. All of them move along a circular path, just like the poster in this question asked: Moving an object in a circular path This ...
0
votes
1answer
485 views

Revolve FlxSprites Around a Central FlxSprite in Flash Game made with Flixel

I have been working on a Flash game made in Flash Builder using the Flixel library. I have been trying to dynamically create a group of FlxSprites , and revolve them around a player controlled class ...
4
votes
2answers
342 views

2D Change Velocity Based on Distance XY While Moving Parabolic Arc

What I'm trying to achieve is that the entity moves in a parabolic curve, and no this has nothing to do with gravity before you ask. I give the entity a target position which it should move to, but ...
4
votes
2answers
2k views

Pointy top hexagonal A* pathfinding

I'm trying to create a game with a hex based map with the points at the top. I have most of it working, however the path finding is being a little awkward. The heuristic I'm using is called Euclidean ...
6
votes
1answer
2k views

Orbiting multiple objects evenly around a changing radius

I have multiple objects (circles) and I want to place them in a circle, with even distance between each one, and have them orbit the center of the screen. If I remove one object, I want the orbit ...
2
votes
1answer
450 views

Air AS3 Desktop - Detecting wrong screen resolution and coordinate offset

I have an issue with developing an Air desktop app using FlashDevelop in ActionScript 3.0 I'm pretty much new to all this, but I think I made all I should and am wondering if this could be some bug ...
1
vote
1answer
539 views

How to get connected tiles in hexagonal grid system

I've been developing a game where a number of tiles can drag into a hexagonal grid background. For some purpose I need to find the location of same tiles into an array and merge them. Data Layer: ...
2
votes
1answer
99 views

Feasible to do all game logic on PHP server?

For the turn-based browser Flash RPG I'm working on, I'm keeping all player stats in a MySQL database, with PHP as the go-between, for the sake of persistence and to prevent cheating by memory editing....
0
votes
1answer
82 views

Better way than url-encoded query stings to pass data from PHP to Flash?

For the turn-based browser Flash RPG I'm working on, I'm using url-encoded query stings to pass data from PHP to Flash. Basically, Flash posts a request to PHP, then PHP pulls some data from a MySQL ...
2
votes
2answers
475 views

Show a range grid movement as3

How do I show range of grid movement in AS3? When player controls a character and chooses "move" options, the grid of movement will be displayed as 3 grid of X, 4 grid of Y (Both sides, + and -). So, ...
0
votes
1answer
108 views

Character jumping but not returning to ground platform game AS3

I am making a platform game where the main character moves right and left and jumps however my character jumps and does not return to the ground but stays on top of the stage.My characters movie-clip ...
1
vote
1answer
31 views

How does Actionscript choose which order to run objects' code in?

I can only assume that Flash runs code in the order that objects were created - so newer objects are run later. Is this true? Is there any way, other than deleting and recreating objects, that I can ...
5
votes
3answers
2k views

How do I get the distance between 2 points on an isometric grid?

How do I get the distance between 2 points on an isometric grid? I'm creating a facebook isometric game (in as3), and when I move around a particular type of building, I need to know if it comes ...
0
votes
2answers
57 views

Which better? Write all scripts on timeline or write it partially on `.as` file?

I'm going to create a flash game. But I don't know which way for me to write my scripts. Is it better if I write script part by part and by object so every object has they own script .. or write all ...
0
votes
1answer
249 views

Using box2d with starling

In my game I have a Main class in which i am initializing starling framework by passing Game class like below myStraling = new Starling(Game , stage); In the ...
2
votes
2answers
5k views

What are the advantages and challenges of using Haxe over ActionScript 3? [closed]

I read this, and I also see that using FlashDevelop you can make an Adobe Air project with Haxe and compile to exe. I begun to wonder from a game making perspective: Are there any additional ...
1
vote
1answer
175 views

how to save data in a visual novel with shared object

I've been looking for ways to save data in a visual novel, I have seen that the best way to do  is with shared object but the tutorials are usually saved scores and I want to save the history ...
0
votes
1answer
404 views

Should a bowling game use a 2d or a 3d physics engine? [closed]

I'm creating a bowling game in flash+as3. I'm new to physics engines, so, to start I've begun to learn Box2D since I've heard it's one of the most popular physics game engines. Currently, I'm not ...
0
votes
1answer
417 views

Rotation of objects from different axes in Flash AS3

In my game, I have made 4 lines with different colors to form a square but the colored lines are different objects. I want to rotate the lines in a way that the lines will still form a square. Eg: ...
2
votes
1answer
6k views

How can I calculate DeltaTime in seconds?

Here is how I've been trying to implement delta time based on different internet resources. ...
2
votes
1answer
332 views

How do I implement a Camera in the PushButton Game Engine?

I am playing around a bit with the PushButton Engine for game development in Flash and have come across a need for a Camera like the Camera that follows Mario in Mario Games. Flashpunk has a nice ...
-4
votes
1answer
552 views

Multidimensional Pathfinding Algorithms

When trying to program hostile AI units for a war strategy game using pathfinder methods, do programmers ever have one algorithm for the unit to move and a separate algorithm for the unit to actively ...
3
votes
2answers
996 views

Game Server Framework / Engine that supports AMF? [closed]

I am looking for a server technology that supports AMF (because I plan on using an as3/flash front end). I would like to develop game logic / simulations that run on the server. Small number of ...
3
votes
3answers
4k views

How do I detect collision between movie clips?

I know there are some methods you can use, like hittestPoint and so on, but I want to see where my movie clip collides with another another movie clip. Are there ...
20
votes
7answers
7k views

Easiest, most fun way to program 2D games? Flash? XNA? Some other engine? [closed]

this is a post detailing my search for the most enjoyable way for a hobbyist game programmer to sweeten his free time with making a game. My requirements: I looked at Flash first, I made a couple of ...
4
votes
2answers
617 views

Flash game engine [closed]

I need simple game engine with pixel-perfect collision detection, camera component with following function, network and particle components would be desirable. Anyone knows whether the engine right ...
1
vote
0answers
68 views

How can I make this easing function less jumpy? [closed]

I have this function that acts as an ease-in: protected static function easeIn(ratio:Number):Number { return ratio * ratio * ratio; } Ratio is a value ...
0
votes
1answer
225 views

2D engine that uses Flash Platform classes? [closed]

I want to develop a 2D game for Android, but, I want to use Flash Platform's framework APIs, ex: Sprite, Shape, ...
0
votes
1answer
128 views

AS3 Client not sending movement to server

I am having trouble with multiplayer player movement in my game. The client is in AS3 and the server is in C#. Here is my problem: When I first launch the game, it connects to the server, and ...
-1
votes
1answer
37 views

How do I load an array of display objects with shared objects using action script 3.0? [duplicate]

I'm making a city builder game, where players can build their town using different constructions. A player has the possibility to save his city. In the main menu, a player can choose to see different ...
1
vote
1answer
133 views

AS3/Flash Develop - Radial Gravity (character on planet simulation)

I am trying to create a program where a character shape will be constantly drawn towards the centre of a planet shape. I have taken on previous advice into using physics equations to generate the ...
1
vote
1answer
320 views

How can I spawn a sprite based on a condition after the game starts?

How do I spawn a sprite anytime later in the game when the game starts? I'm using FlashDevelop with Flixel. I did try it in override public function create(): void....
4
votes
1answer
474 views

Fixed timestep with interpolation in AS3

I'm trying to implement Glenn Fiedler's popular fixed timestep system as documented here: http://gafferongames.com/game-physics/fix-your-timestep/ In Flash. I'm fairly sure that I've got it set up ...
1
vote
2answers
114 views

How can we test a section of a game?

I'm making a clone of an old atari 2600 game, so it's simple, only slightly more complex than the original. I'm realizing that even the simplest of games have different "parts", what is a good ...
1
vote
0answers
97 views

Drawing simulator - Tracking mouse movement

I was wondering what would be the logic behind coding a drawing simulator like the one on this website: https://www.mdbg.net/chindict/chindict.php?page=chardict&cdcanoce=0&cdqchi= The ...
1
vote
1answer
142 views

AS3 ScaleX is moving object across screen

I am trying to make an HP bar for my game. I have the code here ...
0
votes
2answers
858 views

Use of FlxG.camera.follow to follow a character vertically

I am developing a prototype for a game in Flixel in which a character floats upward continually to traverse the level. I would like to have a "tall" layout for levels and set the FlxG.camera to follow ...
-1
votes
1answer
816 views

How to make game like Gals Panic [closed]

Any one have a idea how to build game like Gals Panic. I want to know the basic idea how can i start building the game. Note : im a flash game developer.So anything related to flash would be helpful. ...
6
votes
1answer
2k views

Algorithm to make groups of units

In Age of Mythology and some other strategy games, when you select multiple units and order them to move to some place, they make a "group" when they reach the desired location: I have a Vector with ...
13
votes
7answers
3k views

AS3/Flash Game Dev: Looking for good & current step by step [closed]

Flash tutorials and examples have been around so long it is hard to know what sites to actually read for good, current AS3 game dev. I'm looking for a good start to finish for flash game development, ...
2
votes
3answers
7k views

What's a good Flash game development tutorial, in FlashDevelop, for an absolute beginner?

Ok, here's my situation: I'm tutoring a 14yo homeschooled student with very little previous programming experience, and I'd like to teach her how to program. I think that Flash Actionscript 3 is a ...

1 2 3 4 5 7