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 ...
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 ...
1
vote
1
answer
71
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
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
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
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
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 ...
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, ...
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
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
...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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
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
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 ...