Questions tagged [actionscript]

Actionscript is an object-oriented programming language primarily used in association with Adobe Flash.

Filter by
Sorted by
Tagged with
0
votes
1answer
71 views

flash - hitTestObject() mafunction?

Is there a way that even though two objects that have different y co-ordinate collide? In my game, I wanted to make my object rotate as explained in ...
0
votes
1answer
373 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: ...
1
vote
0answers
20 views

Correctly implement of an object rotation

How can I correctly implement 360 degree rotation of some object, every time when some condition is meet? I have two class, one with definition of function and second with ...
1
vote
0answers
157 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
1answer
788 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
1answer
401 views

Codes for walking on platforms along with jumping using actionscript 2.0

I want to know the shortest and most understandable code for walking on platforms using actionscript 2.0. I know there are multiple ways in doing it but my method becomes too tedious when a lot of ...
1
vote
1answer
352 views

How do I pause and resume a game in ActionScript 2?

I'm making a game where the player must avoid random falling objects. I dont know how to implement pausing. I've been stuck on this for 2 days! I tried using ...
0
votes
1answer
275 views

Using external music mp3 in flash game [closed]

sorry for my english. Im relative new to flash game development, Im creating a game and I need some big size mp3 files. If I add them into flash, .swf file will be too big. I guess I need to host mp3 ...
2
votes
1answer
321 views

Is there a better alternative to Timers to increment speed?

I'm making a chaser game in flash, where you would press an arrow key and the player would move in that direction then stop on another point on a grid, as the enemy does the same and chases the player....
1
vote
2answers
204 views

Can I make a flash file I developed to run on Androis / IOS?

I've created a simple game using ActionScript 3.0 and Adobe Flash CS5. Is there any way to run this creation on Android / Apple IOS ? (Even if so, I still have no Idea how to work with "touch" ...
0
votes
1answer
183 views

How to stretch Movie Clip according to user's touch coordinates?

I have code like this: touchX = e.stageX; touchY = e.stageY; I also have a player movieclip that I'm trying to make shoot lasers. So I got the MovieClip to ...
4
votes
1answer
581 views

FlashPunk + Flashdevelop - How to use sponsor provided preloader

I have developed a flash game using FlashPunk (on FlashDevelop). And now that I am trying to add a sponsor preloader and splashscreen to my game, I realize the flashpunk forums are down, and have been ...
0
votes
1answer
174 views

Increasing height increases width

I have a game, where the user presses a button to spend money and increase the height of a Movie Clip. I use the following: height ++. The problem: When I test ...
2
votes
1answer
429 views

How to start external AS file playing on frame 2 (instead of frame 1)

I am using actionscript 3 and I have used an external actionscript file (.as) for my game. I would like the external actionscript file to be played at frame 2 (instead of frame 1, as it is an ...
2
votes
1answer
415 views

Can't click on a button with startDrag() active on stage

I need to know how can I enable mouse click on a button when I have a MouseEvent listener for the stage. I have an MClip ...
0
votes
1answer
453 views

How can I make an infinite cave using stage3d?

I want to make an infinite cave in my 3d game using flash stage3d. But I got no idea about how to build that cave. Can anyone can give me some solution or hint? update: I've tried agal fragment shader ...
1
vote
2answers
562 views

Design Pattern for Social Game Mission Mechanics

When we want to design a mission sub-system like in the The Ville or Sims Social, what kind of design pattern / idea would fit the best? There may be relation between missions (first do this then this ...
2
votes
1answer
2k views

how does server communication work in a flash game with a php backend

I am trying to create a browser game using actionscript/flash. Currently, I'm trying to understand how I would go about creating a back-end which interfaced with my MySQL database. As far as I ...
3
votes
1answer
916 views

Any good web frameworks for asynchronous multiplayer games? [closed]

I'm trying to craft a site for web-based (original) board games, and my client (currently written in Actionscript, but that's highly fungible) works fine - I can play solitaire games in the client - ...
0
votes
1answer
109 views

Setting up speedtests in Actionscript 3 for an entire game

I'm very new to this so please forgive the questions possibly ill-stated nature. Firstly is this even a valid way to speedtest: ...
3
votes
3answers
2k views

Multiplayer API with Unity 3.5 and AS3

On the faq for the current preview release, http://unity3d.com/unity/preview/faq it says that while networking is not currently supported for flash compilation, we can write our own in AS3 using the ...
7
votes
5answers
1k views

Circular Bullet Spread Is Not Even

I'm creating a bullet shooter much in the style of Touhou. Right now I want to have a very simple circular shot being fired from the enemy. However, the spacing is very uneven, which isn't very good ...
0
votes
3answers
2k views

ActionScript 3.0 and iOS

In Adobe CS5 you can export games to iOS, but all my research in the past indicated that Apple was not going to support Flash. It's my understanding that Adobe and Apple were working on this at one ...
0
votes
5answers
2k views

Are there any sample projects for Flashpunk? [closed]

Are there any open source games using Flashpunk? The other big flash game library Flixel has a number of example projects, are there any equivalents for Flashpunk?
2
votes
0answers
874 views

UDK HUD problem [closed]

I'm trying to add a new element to the HUD, it's supposed to be a compass that should function like a minimap. I've added this code to the main hud.swf: ...
4
votes
2answers
280 views

Controls for physics-enabled game object

I'm trying to put together 2D game on Flash ActionScript. Game objects positions are updated by physics library and I'm trying to control them applying forces and updating these forces every frame. ...
1
vote
2answers
192 views

Need help in determing what, if any, tools can be used to create a free Flash game

Yes I proudly -and sadly- declare that I am a complete nincompoop when it comes to Flash, and I have been fishing around the big wide web for information. The reason for this is that I have been ...
7
votes
6answers
2k views

Beginner flash game development: Start with framework or from scratch? [closed]

I want to write some simple flash games (as a hobby). I have a lot of programming experience, but no experience with Flash/ActionScript. My question is: As a beginner, is it a good idea to start with ...
5
votes
3answers
9k views

Triangle - Rectangle Intersection in 2D

I had previously asked this for 3D but now I changed my strategy and would like to do the intersection in 2D. The Rectangle is axis aligned and will always be in a fixed position, and has a constant ...
4
votes
1answer
510 views

Is Scaleform/Flash used in console games for non-UI, game elements?

I work for Konami as a Flash developer, and got sent some code for a puzzle mini-game from a new, yet-to-be-released Silent Hill game for PS3/Xbox 360. It was a windows executable, but it was made in ...
-5
votes
2answers
474 views

Why is my hitTest() not working every time? [closed]

I have a code segment in which I use hitTest() a couple of times but at a particular section the hitTest stops working. It doesn'...
4
votes
5answers
410 views

Developing Flash games on the Wii

Has anyone used WiiFlash for developing Flash games? Any pointers on how to begin developing games for the Opera channel for the Wii?
14
votes
2answers
2k views

What libraries do you use for developing games in Actionscript?

There are a couple of libraries I have used myself when developing games in Actionscript: Flixel: Created by Adam Atomic, well known as the library created for Cannabalt. Very special for pixel art-...