ActionScript 2.0 :: How To Create My World In Game Project
Aug 16, 2010
Right now I am creating a game kinda like the helicopter game. I have been trying to decide how make my world. I tryed drawing the entire thing and then just have it play through in a motion tween (classic tween) but that was way to time consuming. Also when you hit the objects in this world you die and its game over just like in the helicopter game.
View 4 Replies
Similar Posts:
Jan 18, 2010
I'm thinking of building a game along the lines of Farmville - items, events, time management system etc. Options I am thinking of:
1) Flash UI frontend that uses AMFPHP to get all data for the view from a PHP powered backend.
2) Actionscript to power the whole game
My concern with Actionscript is scaling, my concern with PHP is having to build an update system that would need a lot of back and forth xmlhttprequests which might get complicated.
View 5 Replies
Feb 19, 2010
Has anyone created a custom map chart of the world using Flash 8? I read in few places that its possible with a component but cannot seem to find the right one.
I need to create a custom heat map (map chart) which is based on the global map, and shows the performance all of the world's unemployment rate. Some alike this interactive swine flu map
However this is a map software but I need a component so to integrate the map inside my own flash application, is there a Flash 8 component which made it easier to create such map?
View 1 Replies
Feb 6, 2009
I have a display box on the stage and I am having trouble getting the x and y coordinates to sync on the createTextfield box. The width and height are correct when I test it. The textfield does not show up in mcDisplayBack. How do I get them to line up?
Script
var nWidth:Number = mcDisplayBack._width;
var nHeight:Number = mcDisplayBack._height;
[code].....
View 9 Replies
Jan 31, 2011
I need to create a video showing the world-wide population growth of company from 1830 until now. I have a spreadsheet with the dates of when each unit opened. I would like to have a spot on the right location on a map glow as each unit open up. Is there a way to do this in Flash or Flash Builder? Some similar videos I've seen are: [URL]
View 1 Replies
Mar 28, 2012
im trying to create a tamagotchi game type game. For some reason i can not add any items to the stage.Currently i have imported 2 png images to the stage and coverted them to movie clips. One is called TamagotchiCharacter and the other is called Beer. I have also created a new 2 AS3.0 script class called TamagotchiGame and DraggableItem. The following is TamagotchiGame:
Code:
package {
import flash.display.MovieClip;
public class TamagotchiGame extends MovieClip {
[code]....
I have assigned the above code as the BaseClass of the Beer symbol, this has allowed the beer to become draggable and droppable etc.when i run the program nothing happens, i just get a blank white screen.
View 2 Replies
Dec 1, 2010
we had a school project to make a device. My partner said that we should make a computer game for our school project. I asked in another forum if it is possible to do it in less than a week. They told me flash is the best for beginners. I was thinking of making a clone of hangaroo but replace it with another animal and my country's language. Is this possible in flash? Is there noob-friendly tutorials out there that explains the basics of how to make a hangaroo style flash game?
View 2 Replies
Apr 11, 2009
I really want to start work on a game idea I have using PaperVision.The largest/most complex thing in Flash I have ever made is probably my last project which is an interactive school map for my A Level [URL] . Check it out, its a little laggy in the browser but it is designed to run in the flash projector from the desktop.I used around 10 .as files and dumped all my graphics in 1 .fla as sprites and stuff.This is ok (...ish) as I had a large 'main' file and a massive 'main3d' file which (324 lines which is big for me :S lol).
Im planning on making it a big, 3D adventure style game with lots of elements and AI things. But how do I organise my code? If I continue like this, I'm going to have a few mahasssive files and lots of small ones.How to the 'pros' organise their stuff? All the time I see source codes for small experiments which are great, but I have never seen any layout overviews of what files they used and what kinds of things they put in them. I also have no idea how complex environments, where objects need to update to add/remove elements without having to check the position of the player every frame.
View 5 Replies
Jun 16, 2011
I wish to create a multiplayer game facebook app. A game will have 1 to 4 people in it playing from their own systems. I wish to target, lets say, 10K simultaneous online users. I am planning to write the client side game in Flash. I wanted to know how these clients communicate with each other. Can these clients communicate directly with each other or I should go with "server as middleman" approach? I want the game to work even in "restricted" networks. If server, how do I have things working from google app engine cloud service? I came across channel API, should I use that? Would it work with a flash client?
View 3 Replies
Mar 5, 2010
I am developing a game project, in which I have many functions on it. I have all the major functions on the frame 50. And I don't want these functions on the next frame. Indeed I didn't have these functions on the 51st frame, the 51st frame only contains a stop action. But flash calls all the major function on the 51st frame also, I don't want these function to call on the 51st frame. Is there any way to stop this? Or else my program contains error?
Here is the program...
= The 50th Frame =
stop();
fscommand("allowscale",false);
fscommand("fullscreen",false);
var die:Boolean = false;
var currGun:String="hd_gun";
[Code] .....
View 3 Replies
Jul 28, 2009
I am doing a game but keep getting this error: Statement must appear within on/onClipEvent handler. This is the code I am using:
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP)) {
this._y-=10;
}if (Key.isDown(Key.DOWN)) {
this._y += 10;
[Code] .....
View 1 Replies
Mar 23, 2010
I've been working on a uni project. Basically, enemies are placed on the screen using a timer variable and using the attachMovie to put them on the screen. This is an example of the code I'm using:
Actionscript Code:
var enemies;var timer;
function onLoad(){
enemies = [];
timer = 0;}
function onEnterFrame(){timer++;
if (timer == 10) {
Timer = 0;
var enemy = _root.attachMovie("mc_1", "mc_1",
_root.getNextHighestDepth());
enemies.push(enemy);
}}
This works and places them on the screen, (and into the array) but by putting them into the array, I thought that each one would be a unique instance of the movieclip which doesn't always seem to be the case. If I shoot one of the enemies, sometimes another enemy will explode (or both of them) and other times I will knock into one enemy and another one will be the one who get's knocked.
For my collision code I'm using this:
Actionscript Code:
for(var i in _root.player.enemies){
if (some arguments..)
_root.player.enemies[i].health -= 10;
}}
The explosion code also uses a similar for loop. Should I look at another method to place unique instances of the enemies on the screen?
View 3 Replies
Dec 8, 2011
I have been requested to make a port of an iOS game for Facebook.The game itself is fairly simple, it is a puzzle game using a 2d array for a grid with XML passed from a server for loading objects onto the the grid, to create levels.The game will ask questions at stages which will be passed to my server and stored for research purposes.Some questions for those with experience.What front-end options do I have with Facebook? I have looked into both Flash and HTML5/js both of which i have little to no experience in (I'm experienced in Java/C#/Ruby + Rails).Javascript seems like a nightmare from what I have read, even looking into javascript game engines, but at least it is free. My backend will most likely be rails for handling server logic.Summary(because I ramble too much)
-Is javascript for programming games really a problem for simple games on Facebook?
-Are js game engines worth using? Does anyone have any experience with them?
-Would prevention of cheating be possible with a js/rails game, do server side checks work?
-Are there any alternatives for a front end for someone with C#/Java/Ruby background?I've never seen any Unity or Java apps on Facebook(I don't use it much) and I don't know if the licensing will be an issue for this research project.
View 1 Replies
Mar 8, 2009
Since my project uses class actionscript files my whole game project runs on one frame and nothing is on the maintimeline so there is only just one frame on the timeline. Just wondering how I could make it so that I could have the first frame with game instructions and a description which then goes into the game being second frame and when gameover goes to third frame using actionscript. or any tutorials or some peice of advice
View 3 Replies
May 15, 2009
I have to do an animation project for college. I would like to create an animation to use within a bigger project, that looks similar to the First Boot Animation from the new Windows 7.
View 4 Replies
Sep 14, 2009
I have been asked to create an interactive flash project where the user would be able to click on a main image and depending on what part of the image they click on, a movie clip plays, then goes back to the main image.
I am sure this is basic, but I have been researching, watching tutorials, etc for a week now and can't seem to get it to work. I am by no means a Flash expert and have really never worked in it. I do more Photoshop and Illustrator-type work. So Actionscript is new to me and really the whole interface is as well.
Would you all be kind enough to help me out? I am going to need some detailed explaination.
View 7 Replies
Jun 19, 2010
just a simple question...i want to create a project that is interactive so when a user takes an object that contains a number and drags it over another object that contains another number, i want it to perform a calculation...can i accomplish this with actionscript?
View 1 Replies
Apr 4, 2012
Is it always best practice to remove every listener that you create in a project?I thought I had this worked out but all of a sudden I am getting errors by trying to use the removed from stage listener.So there are buttons on the stage and some movieclips that those buttons make visible and here is the code that I am trying to use, but it generates errors on leaving the frame. I think this is the same as what I have been using but somehow it is now not working for me.[code]...
View 12 Replies
Aug 13, 2010
we are doing a seamless interactive video-game-video project, but are having optimization problems. Because the client wants a full-screen option for both the video and game segments, our file size is too big. Any advice on how to minimize load time yet retain a relatively high-quality image standard? The h.264 codec would help with image quality, but there are licensing issues, and we need the transperent alpha channel for the video segments.
View 1 Replies
Feb 1, 2010
I am trying to create a project with multiple pages. I stumbled across a tutorial demonstrating how to load and unload swf's. I used it and it works. way i could specify a btn or mc in the loaded swf that will specify the "click" area where the unload content takes place? Right now if i click anywhere on the loaded swf it unloads (i want that to be specified).
var myLoader:Loader=new Loader ();
page1_mc.addEventListener(MouseEvent.CLICK, page1content);
function page1content(myevent:MouseEvent):void {
[Code]......
View 10 Replies
Apr 7, 2010
'm a complete newbie, trying to create an educational app for a Masters project. The app will have various sections so I started by creating labels for each section along the timeline and set up all the navigational buttons. So far so good.I'm working on creating the content for the first section. I've created a button that leads the user to another "page" in the first section where I've inserted an audio file. I wanted to created a tween to accompany the audio explanation with some moving symbols and at the end two more buttons would appear that give the user 2 choices of where to click.the tween I want to create is about 18 seconds long (432 frames). After this, I will create another similar tween to deal with another audio explanation. This gives me a problem. Tthe timeline only appears to go up to 600 frames - not enough for my needs and who knows how many frames I'll need by the time the app is finished.
1 - Is there a way to extend the timeline beyond 600? (I would have to shift all my other sections along to accommodate my inserted tweens, but that's not the end of the world)
2 - Is this the best way to do things, having super-long motion tweens? I know I could add a video, but what I like about my tween idea is that the user sees stuff appearing as the voice explains and the option buttons only appear at the end of the tween, stopping the user from clicking them before the voice explanation finishes.
View 6 Replies
Nov 10, 2011
i am taking an old as1 project and converting it into as3i believe all of my publish settings are correctthere are 2 classes in my library with base class movie clipmenucallermysqlurlmenucaller and mysqlurl each have an .as file associated with them, and are exported for actionscripton the stage i have instances of of menucalleron mouse over of menucaller, menucaller adds itself a child of mysqlurl via the menucaller.as filethe problem is that sometimes this works perfectly fine,but sometimes i get errors of "cannot create property" referring to properties of mysqlurlsometimes copying and pasting all of the layers into a new project corrects this, but sometimes it does noti have an example of the problem here:in the folder there are 2 .fla files, one labeled "works" one labeled "dontwork", self-explanatory
View 2 Replies
May 2, 2006
This is my first time using this forum. I have a question for anyone out there. I am trying to create a dust effect for my project. I have looked everywhere to get an answer on how to even approach it, but no help. The dust effect I want to create is when a piece of board hits the floor, dust flies or goes up and disappears.
View 5 Replies
Jun 9, 2009
I am trying to create a flash presentation project, in which the keyboard arrows navigate between elements on the stage AND once an element (a button) is highlighted (with the stupid rect focus thing) I would like an event to be triggered. the user navigates between elements using the arrow keys and the act of landing on each element triggers an event (loads image, goes to a frame, etc.)
View 3 Replies
Aug 9, 2004
Im trying to create a small data visualization project. i'm wanted multicoloured balls to fall the mouse round the screen and when you click one it brings up data from an xml document. im currently using a image of a ball is there away to generate one in flash so far this is what i have
ball.onEnterFrame = function() {
var xMouse = _root._xmouse;
var yMouse = _root._ymouse;
[code]....
View 14 Replies
Jun 21, 2010
I cant "center" my project, like you can see its "fixed" (yellow lines) in the left side and I cant see "invisible" part of project... (area around the project). how can I move my project so I can see the not-project area around the project. (picture 2).
At the moment situation... (cant see that area around the project)
http://img19.imageshack.us/img19/1186/68553623.png
View 2 Replies
Nov 10, 2011
i am taking an old as1 project and converting it into as3 i believe all of my publish settings are correct there are 2 classes in my library with base class movie clip
[Code]....
menucaller and mysqlurl each have an .as file associated with them, and are exported for actionscript on the stage i have instances of of menucaller on mouse over of menucaller, menucaller adds itself a child of mysqlurl via the menucaller.as file the problem is that sometimes this works perfectly fine, but sometimes i get errors of "cannot create property" referring to properties of mysqlurl sometimes copying and pasting all of the layers into a new project corrects this, but sometimes it does not i have an example of the problem here:[URl] in the folder there are 2 .fla files, one labeled "works" one labeled "dontwork", self-explanatory i think youll have to take a look at the files in order to help with this one because ive tried everything and there really seems to be no source of this problem
View 7 Replies
Dec 27, 2011
I want to create a actionscript mobile project in FB4.5. There is very little information on this by the way. Anyway I want to link to another mxml component by clicking on a button. in flex it is easy but how do i call this in AS3?[URL]..
this is how flex does it <s:Button label="Continue" click="navigator.pushView(MyNewView)" styleName="next"/>
View 3 Replies
Jun 5, 2010
I worked in flash cs3. Have "People.swf"- library MovieClips, they have export for actionscript and first frame. Names classes "Head1"..."Head2" and so on. How i make create object "Head1" in other flash project?
View 2 Replies
Aug 10, 2010
I am trying to add a crossdomain file for my flash project...haven't done it before..and there are not too much information online.
View 2 Replies