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.
322 questions
0
votes
0
answers
39
views
Coding a health and stamina bar above player in Adobe Animate
I am using Adobe Animate for my school assignment.
I have a three-segment health and stamina bar that is above the player (it isn't set to be attached to the player yet).
I have a single enemy ...
2
votes
1
answer
235
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
1
answer
146
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 ...
0
votes
2
answers
122
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
1
answer
70
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 ...
0
votes
1
answer
819
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 ...
0
votes
1
answer
216
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 ...
0
votes
1
answer
705
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:
But ...
0
votes
3
answers
257
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, and ...
-1
votes
1
answer
59
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
1
answer
75
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) ...
1
vote
2
answers
212
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
0
answers
153
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 ...
0
votes
1
answer
104
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
1
answer
654
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
1
answer
192
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
vote
1
answer
1k
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:
...
-1
votes
1
answer
3k
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.
...
1
vote
1
answer
239
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
2
answers
97
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 ...
1
vote
1
answer
214
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
1
answer
192
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 ...
2
votes
1
answer
669
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 ...
0
votes
1
answer
622
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 ...
1
vote
1
answer
199
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
0
answers
216
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 ...
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 ...
1
vote
0
answers
55
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 ...
4
votes
2
answers
497
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 ...
1
vote
2
answers
246
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, ...
1
vote
0
answers
106
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 ...
3
votes
4
answers
3k
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 ...
1
vote
1
answer
77
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 ...
-2
votes
1
answer
307
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.
...
1
vote
2
answers
273
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 ...
0
votes
1
answer
723
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 ...
0
votes
1
answer
80
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 ...
3
votes
1
answer
972
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 ...
2
votes
1
answer
787
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 ...
0
votes
1
answer
296
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 ...
1
vote
1
answer
317
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 ...
1
vote
1
answer
311
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 ...
0
votes
1
answer
118
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 ...
0
votes
1
answer
265
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 ...
2
votes
1
answer
543
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 ...
1
vote
1
answer
279
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 ...
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 ...
1
vote
1
answer
391
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, ...
1
vote
1
answer
318
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 ...
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 ...