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
2 votes
1 answer
186 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....
BladePoint's user avatar
0 votes
1 answer
100 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 ...
BladePoint's user avatar
0 votes
2 answers
65 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 ...
user111981's user avatar
1 vote
1 answer
41 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 ...
user111981's user avatar
0 votes
1 answer
691 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 sure ...
user1221672's user avatar
0 votes
1 answer
184 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 ...
Hamza's user avatar
  • 103
0 votes
1 answer
636 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: ...
therealyubraj's user avatar
0 votes
3 answers
210 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, ...
Daniel Angel Diz Garcia's user avatar
-1 votes
1 answer
45 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 ...
user100490's user avatar
1 vote
1 answer
36 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) ...
Neal Davis's user avatar
1 vote
2 answers
141 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 ...
Neal Davis's user avatar
1 vote
0 answers
135 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 ...
Zulu's user avatar
  • 11
0 votes
1 answer
84 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? ...
Zulu's user avatar
  • 11
3 votes
1 answer
602 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, ...
Hugo Chapdelaine's user avatar
0 votes
1 answer
159 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 ...
Quasar Xrt's user avatar
1 vote
1 answer
928 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: ...
moin khan's user avatar
-1 votes
1 answer
2k 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. ...
moin khan's user avatar
1 vote
1 answer
209 views

AS3 ScaleX is moving object across screen

I am trying to make an HP bar for my game. I have the code here ...
Quasar Xrt's user avatar
0 votes
2 answers
66 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 ...
Gregorio's user avatar
1 vote
1 answer
194 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 ...
Karu Sith's user avatar
0 votes
1 answer
149 views

AS3/Flashdevelop - Controlling a 2D character to move around a planet with gravity

With a little help I have managed to create a 2D planet with working gravity that constantly pulls a character towards its center. The only problem now is that I am completely stumped on how to make ...
Denver Thomas's user avatar
2 votes
1 answer
606 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 ...
That Marc's user avatar
  • 123
0 votes
1 answer
558 views

AS3 Air - Custom slider - limit drag position

I'm facing issues with finding the right solution for detecting and limiting the Sprite object "Knob" moved on y axis inside it's parent sprite "Frame", using FlashDevelop 5. Using ...
That Marc's user avatar
  • 123
1 vote
1 answer
161 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 ...
Denver Thomas's user avatar
1 vote
0 answers
195 views

Host Migration (P2P) with RTMFP and AS3

I was wondering if this is a possibility with RTMFP since it acts like UDP/P2P.. Host Migration Player A starts and host a game.. Player B and C connects.. Player A quits.. Player B is now assigned ...
scottyp's user avatar
  • 429
0 votes
1 answer
1k views

AS3 .hitTestObject() not working with Tween function

(This was originally in an other senction but many told me to ask here, hopefully someone can answer this) I am having a major problem in my new browser app. Okay so I made game where different cubes ...
werer cool's user avatar
1 vote
0 answers
43 views

Citrus Engine - How do I set-up the camera?

(Would be great if someone with greater rep created the Citrus Engine tag and add it to this question) I want to make a game where my inner starling stage dimensions are 320x240. My game will have ...
Luis Masuelli's user avatar
4 votes
2 answers
445 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 ...
Maarten's user avatar
  • 169
1 vote
2 answers
178 views

How can I minimise memory thrashing when doing vector math in JavaScript or ActionScript?

Please note that a similar question has been asked before in the context of C#. Say I'm building a 3D game in Javascript or Actionscript, and doing a lot of 3D vector math. In current libraries, ...
Robin Rodricks's user avatar
1 vote
0 answers
78 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 ...
Artemix's user avatar
  • 527
3 votes
4 answers
2k 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 ...
Artemix's user avatar
  • 527
1 vote
1 answer
56 views

AS3 - Increase tint as health decreases

I'm working on a game where enemies continually spawn with more and more health based on how long you've been playing. As the enemies take damage, I'd like their sprite to get darker and darker, until ...
Graham Hamilton's user avatar
-2 votes
1 answer
270 views

addChild does not work in Flash [closed]

Have been trying to understand this problem for two weeks. When I use addChild(movieclip) in the Main.as file, it works. When I try to use it in a function in a separate class file it does not work. ...
Cherry Red's user avatar
1 vote
2 answers
253 views

Animate/Interpolate and wait for completion.

I'm implementing a blackjack game in flash and so far the logic is fine but there is no animation for the cards so they just appear and disappear which doesn't look very pleasing to the eye. I want to ...
Jordan's user avatar
  • 11
0 votes
1 answer
626 views

AS3 random events using a timer

I'm making a game for an assignment at university. The game I am making requires random household appliances around a house to "turn on" at random times. The player must run around the house turning ...
Job4aC0wb0y's user avatar
0 votes
1 answer
56 views

AC3 FlashPunk Console doesn't show anything

I am making my project using flashpunk , I knew that it has a good console gui to give feed about states of the game , however when I tried making it appear with the FP.console.enable() method it ...
Mohamed Atef's user avatar
3 votes
1 answer
889 views

In AS3, is it necessary to remove the children from a parent who is also being removed?

My point is this: addChild(parentMC); parentMC.addChild(child1); parentMC.addChild(child2); If I want to then remove parentMC ...
EFrog's user avatar
  • 131
2 votes
1 answer
768 views

Framerate on AIR for Android - Actionscript 3

I am currently working on making Android apps using AIR for Android. This is a sample file and package that I am running to test the FPS and Memory usage of my application while it is not even doing ...
Eddie's user avatar
  • 41
0 votes
1 answer
265 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 ...
Sayam Qazi's user avatar
1 vote
1 answer
290 views

change the position of f3d objects randomly in action script

I have a f3d object and have different boxes to place the parts of the f3d objects.When i click on the button change the position of the boxes randomly. How it possible?This is the code for random ...
Deepika C P's user avatar
1 vote
1 answer
228 views

Change DisplayObject's bounds in Flash/AS3

I'm developing some platform-like game using AS3 and Flash CS5 for animations. I've already done most of the mechanics now, and I've starded to drawing characters and animating them. But some problem ...
Krzycho's user avatar
  • 11
0 votes
1 answer
94 views

Controlling depths of objects in Flash

I am trying to change depths/ layers of my gameobjects inside the game using flash. To be more specific, I have a horse object and a fence object. I set them up initially on stage and the horse layer ...
ckzilla's user avatar
  • 425
0 votes
1 answer
231 views

multiple flash timeline animations with actionscript

I am not new to AS3 and Flash but new to Flash timeline animations and controlling them with AS3. Had posted a similar question last week but the solution did not work. Hope someone could help me out ...
ckzilla's user avatar
  • 425
2 votes
1 answer
521 views

How should I manage states in my game?

I can't understand what design pattern I can take advantage to build an intro screen, help screen, level select screen, game screen, game over screen, altogether. I can make one in AS3, but the code ...
Daniel's user avatar
  • 31
1 vote
1 answer
248 views

Multiple animations on flash timeline

I am working on a game inside Flash with ActionScript 3. I have a horse game object with different animations for Walk, Run and so on. I have never worked with different animation types with Flash ...
ckzilla's user avatar
  • 425
1 vote
1 answer
1k views

Mouse follow precision in flash

I am trying to implement a simple movement for one of game objects in flash/ AS3. I am using mouseX, mouseY for my object to follow the mouse pointer. It works fine but the problem is the precision of ...
ckzilla's user avatar
  • 425
1 vote
1 answer
310 views

How do I combine matrix transformation with non-uniform screen scaling in Flash?

I'm using a Flash transformation matrix for affine transformation. I have a rectangular image being rotated and scaled (in 2D). There are two sets of scaling variables, ScreenScaleX and ScreenScaleY, ...
heyitsbmo's user avatar
  • 203
1 vote
1 answer
292 views

integrating leaderboard from Newgrounds in flash game [closed]

I have made flash game and I want to show a leader board in that game. I have uploaded my game to kongregate.com. I have made a scoreboard there with the name of overLoadScore (overload is the name ...
user3536228's user avatar
0 votes
2 answers
1k views

How can I save a global high score for all players in AS3?

I am developing a game in which I want to make a scoring system where the global high score is stored and shared by all players. I am using Flash and ActionScript 3. Until now I've used ...
user3536228's user avatar
1 vote
1 answer
205 views

Effective content manager on AS3 Flash

In my game more than 600 images and 200 sounds. I'm try organize effective images and sounds manager for fast access. This is a good approach? ...
Rusildo's user avatar
  • 103

1
2 3 4 5
7