Actionscript 3 :: How To Load The Level Data Externally - Building A Tile Game

Jun 14, 2011

I'm building a basic tile game containing 3 layers of 'tiles' image the game has a dimension of 3x3 my data array's look like this:

[Code]...

How can i load this data from an external file which is easy to edit for the level-desiners ? (and what is best to use, xml, json,?) Is is not better to just use 1 datafile instead of 3 and what is the best way to do this?

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Load One Game Level At A Time?

Jan 12, 2012

I have seen in some games where instead of loading the whole game at the beginning of the game, they load one level, with the preloader on the screen, then when that level is over, another level is loaded, with the preloader on the screen, etc. I've been trying to find a tutorial or some information on how to do this online but couldn't find anything. I have a game that takes a long time to load when loading it all at the beginning of the game, so I'd like to load it level by level.

View 7 Replies

ActionScript 3.0 :: Tile Based Pacman Game?

Feb 28, 2010

I am trying to make a pacman game and was advised that collision detection for a game like this is much easier if you create it using a tile based methodology. I have the map created and the character moves fine around the grid. But once I added collision detection it seems to be a bit off and inconsistent. Im not entirely sure what the problem is with the collisions.

View 9 Replies

ActionScript 3.0 :: Detect Loose Groups In Tile Game

Sep 16, 2011

I have a tile based game à la Scrabble where tiles are placed on the board.. during the game the tiles must all be touching, and there should be no groups of tiles anywhere else on the board..I can find single loose tiles and check for surrounding tiles easily enough but how would I go about checking if every tile is touching on a horizontal or vertical axis and if there are loose groups of tiles on the board ??

View 3 Replies

ActionScript 3.0 :: Tile Based Game Depth Sorting?

Oct 1, 2007

I've been playing around with ActionScript 3. They have a new way of placing clips onto the stage, "addChild(clip)," which automatically places the clip onto the stage with it's own depth. So here's my problem, when making a tile based game, I have to constantly depth sort to make sure the object lower on the screen has the higher depth than an object higher on the screen. Pretty much, their depth depended on their y-coord. Does ActionScript 3 still let us play with depths?

View 2 Replies

ActionScript 3.0 :: Properly Attach Sprites Dynamically In Tile-game?

Apr 6, 2010

i am trying to do the following: in a tile-based game i want to attach a bunch of tiles which are movieclips the tiles are all similar in function, only the graphics are different. so i created one basic class for all of them:

Code:
package {
import flash.display.MovieClip;
public class TileMC extends MovieClip {

[Code].....

View 6 Replies

ActionScript 3.0 :: Puzzle Game : Movement Of Tile With Mouse And Snap?

May 4, 2011

I trying to make a game like Chicken Get Home.There a different type of levels in the game by arranging the tiles. I made the levels in the art and exported the array value by using mappy. ** How can we use the array value in our code and how to import those levels in the code
** How to move the tile with mouse only to blank position(ie like snapping to next tile)..

View 1 Replies

ActionScript 2.0 :: Load Swf From Third Level Into Container In First 'home' Level

Dec 26, 2011

I'm doing a bigger aplication in flash (as2).Image, there is a main "home" flash with several menu buttons.Clicking these buttons, I load external swf into an empty container in this "home" flash.[code]clicking buttons in this second level, will load external movies into an empty container in this SECOND LEVEL swf.This works fine, but now, coming to the THIRD LEVEL (don't think there will be more in the future) problems come up, some scripts won't work.Now (I'm a as2-beginner) I think, loading external swf ALLWAYS into containers in the first "Home" flash should solve the problem.But I don't know, how to load an swf from the third level into a container in the first "home" level.In the "home" level, I have a "close" button, that will unload the container content.I need to go to a certain scene "content_2" in the home swf, too.

View 7 Replies

Building An App To Call A .swf Game?

Aug 7, 2011

I'm looking to build a flash application that acts as a "shell" around a flash game.I only need it to do some pretty basic functions:

1) Calls a PHP script I wrote to determine a few things (if user is logged in, what their userid is)

2) If the php file says the user is logged in, the "shell" should let the user play a .swf flash game that I wrote. And, after they are done playing my .swf game, I want the game to pass out a parameter (score). Again, the "shell" will call a prewritten php script to store the score.

3) If the php file says the user is NOT logged in, the "shell" should display a login box (username/password).

My main challenges have been getting one flash application to call another. (ie: the shell app calling my game). Is this possible?

View 1 Replies

ActionScript 3.0 :: Building Air Hockey Game

May 5, 2010

I'm working on an air hockey type game with Flash and ActionScript 3.0. I'm having a few problems and was hoping you guys could help me out. Mainly having to do with the hit detection and bouncing off the paddle at the correct angle. So far I've been able to get it mostly working, my problem is that it will only work in one direction, if you're moving the paddle to the right and hit the puck, it will bounce off at the same angle you were moving at. However, if you are moving the paddle to the left, it goes to the right. Another problem I was having involves multiple hits, or when the puck gets stuck on the paddle. It tries to calculate the angle and if you're not moving the paddle it kind of blows up. I was trying to get it to only detect the first hit, I tried a couple things, removing the listener and then adding it back with a timer, so you can hit again. That didn't really seem to have any effect.[code]

View 4 Replies

Actionscript 3 :: Building A Multiplayer Game In Flash?

Feb 17, 2012

I want to develop a game like wordfeud for android and iPhone. For now I don't have a mac so I am not able to use xcode to develop for iPhone. Therefore I have decided to use adobe AIR so I can link the game to both android and iPhone.

I am able to build offline games like tetris etc. but what should I look into when I want the game to be multiplayer just like wordfeud where you can have several games running at the same time. I know I need a server for this, but can I use xampp for now just to test the application and then export the db to a real server or is it a different kind of server I must use?

View 3 Replies

ActionScript 3.0 :: Building An Online Mulitplyer Game?

May 31, 2011

if anyone knows of any great tutorials on building an online mulitplyer game

View 1 Replies

Actionscript 3 :: Framework / Engine For Building Social Game Like FarmVille?

Sep 8, 2010

The current architecture of the game is:PHP + MySql backend,Flash and ActionScript 3 frontend.Major criteria for engine/framework selection are:Support for isometric view. Resuability : The current game development should easy the work for building similar social game of diffrent story type in future.

Ease of development as3isolib - for isometric rendering, but restricted only to the rendering part. PushButton Engine - open source engine, component based Open-space engine - But That works with Smart Fox Server only I guess.

View 2 Replies

ActionScript 3.0 :: Check The Existance Of Another Tile To The Left, Right, Or Above And Below, Otherwise The Tile Should Not Be Placed?

Apr 19, 2011

I'm making a game where you place tiles on a grid. When placing a tile, I need to check the existance of another tile to the left, right, or above and below, otherwise the tile should not be placed.. Here is a function I thought would work, that accepts one variable (the position of the tile just as it is about to be placed) :-
 
private function checkSurroundingTiles(gridPosition:uint) {                 var t1 = gridPosition - 12;     var t2 = gridPosition - 1;     var t3 = gridPosition + 1;     var t4 = gridPosition + 12;                 for(i = 0; i < gridRefArray.length; i++) {          var checkTile = gridRefArray[i];                          if(checkTile == t1) {               return true;

[code]....

View 11 Replies

Actionscript 3 :: Skipping To Next Game Level?

Feb 10, 2011

I am in the process of building a game with around 20 levels. Now, as I was thinking of trying to add a "skip" option to the game with the space bar key. I have a little trouble, since holding down the spacebar invokes the KeyboardEvent.KEY_DOWN event multiple times.

The above scenario (Keydown and keyup) works just fine when I'm trying to move my player character on screen. The one main concern that is lingering in my mind is "Is this going wrong because the KeyboardEvent listeners do get removed and added when changing levels?"

P.S: Adding the skip option as a button works just fine, but I'd really like to use Spacebar for the ease of use.

View 3 Replies

ActionScript 2.0 :: Load A Movie To Level 1 That Deactivates The Movie In Level 0 Without Unloading It?

Nov 5, 2004

I have a movie that's 500x400 px in level 0 and has lots of thumbnails with pictures that I want to open. the thumbnails open a 500x400 px movie above the other but on level 1. the problem is that when the new movie loads on level 1, the thumbnails on level 0 (that are now hidden by the new movie) are still active, and if i click anywere in the movie on level 1, it trigger an action from level 0. Is it possible to load a movie to level 1 that deactivates the movie in level 0 without unloading it?

View 1 Replies

Javascript :: What Is A Good Platform For Building A Game Framework Targeting Both Web And Native Languages

Jan 6, 2011

I would like to develop (or find, if one is already in development) a framework with support for accelerated graphics and sound built on a system flexible enough to compile to the following:

[Code]....

View 3 Replies

Flex :: Building Java Multiplayer Server Game - Difference Between Sockets And Webservice?

Aug 8, 2011

I'm building a multiplayer card game using Flex on the client side and Java on the server side and I wanted to know if I must sockets and the accept method in order to connect users to the server for in order for them to join a game room or create one or to chat.In the past I've learned how to build a game server which both sides are JAVA and connection was in sockets but now days the client side will be in FLEX which has few ways to connect to a Java server (XML,SOAP,BLAZEDS(AMF)) and I find it hard to understand how to write the Java server in order to do all the features of a game server,especially managing the rooms and sending data back to the users.

In the sockets way, when a user was connecting to the server and he had opened a room, this room was opened on a thread and who ever was joined that room then he was connected to the same thread and sending the messages to the right place was easy, so the problem is understanding how to do the same using SOAP or BLAZEDS.

View 4 Replies

ActionScript 3.0 :: Tile Based Game - Creating Multiple Sprites Based On Frames

Nov 17, 2009

I'm relatively new to AS3. There's one thing that I don't quite understand about Sprites. I'm making a tile based game, and all the tile graphics for a level are inside one movie clip in each frame. Would I be able to go about creating multiple sprites based on the frames in said movieclip's timeline I would I have to go through and make a separate library graphic for each.

View 2 Replies

ActionScript 3.0 :: Ending Level Game Function?

Jul 13, 2009

i have been trying to work out a way to have a endlevel function on my game....this function would, remove all event listeners, reset the cursor and most importantly clear all dynamically created movie clips(this is the part im having problems with).the first thing i tried was this:

[Code]...

View 2 Replies

Creating Exit Point In Level Game?

Aug 28, 2010

I am wondering how to write code so that once a character reaches a certain 'end mark' it will trigger the next frame/level. I am using Flash CS5, but I have primarily used it for animation. This would be my first leveled game.

View 2 Replies

ActionScript 3.0 :: Game Level Layout Method?

Feb 18, 2011

I am trying to understand the best technique for this.My game is like a side scroller. A new "Tile" or piece of game would contain one of each display objects.

-terrain

-slide (like a playground slide)

-other stuff...

pseudo example: the first tile set would be pieces terrain1 and slide3

Code:
var terrainPieces:Array = new Array(1,2,6,3,16,2,3,5,7,2);
var slidePieces:Array = new Array (3,0,1,2,00,4,2,1,4,0);

One of my issues is readability and ease of level layout.i want to keep the code stacked in a way i can read pieces easily, which is why slidePiece 0 or 00 == no slide (just to keep the array in line).I can look at this and say to myself the 6th set would look like terrain2,slide4. (which are both pooled display objects) Would it be better if each "tile" is a class containing references to each asset? If so, i cant see how to assign each tile in a readable form while setting up the level layout on my end.

View 4 Replies

ActionScript 2.0 :: Tile Tutorial / Slow To Load Always On Top

Jul 21, 2005

I only changed the size from 34 x 34 to 10 x 10. Everything else remained the same. I'm not sure if this is supposed to happen, but it literally takes almost a minute to load/publish preview. One other thing. I have it on the very first layer. I have some simple text on top and it doesn't show. My expertiese in AS is vast. I know enought AS to make a button.

View 2 Replies

ActionScript 3.0 :: Error 1009 When Reached To Next Level In Game

May 13, 2011

I'm making my first flash game but I've run into some problems. Here is the game: [URL]. Everytime I reach the next level I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Game_fla::MainTimeline/movecircle()

I also want the timer to stop counting when I die or finish. I've tried
Code:
if (platforms.currentFrame == platforms.totalFrames -1) {
timer.stop();
}
which didn't work.

View 12 Replies

ActionScript 3.0 :: Game - Erase The Stage And Place A New Level On It?

Oct 20, 2010

For a game where I have a different level on a screen how do I do this? Do I need to erase the stage and place a new level on it or is there a wat to have another stage?

View 5 Replies

ActionScript 2.0 :: Load External File Into Movieclip Than Tile?

Apr 7, 2011

I'm loading an external logo (.swf) into a movieclip. The user would actually select what logo to load from a list. After loading the selected logo into the empty movieclip, the user can than apply certain changes such as changing the logo colors, the size, the rotation and the position of the logo over a certain product.What I want to do is to expand on this by allowing the user to select whether they want the logo tiled across the product

View 3 Replies

ActionScript 3.0 :: Flash Game - Can't Add Level Movie Clip To The Stage

Apr 10, 2010

I'm creating a game, here is a screenshot: I'm trying to implement a scene system in an easy way (I'm a beginner). In this tutorial the author adds scenes as movie clip. So I tried making a movie clip with action script export name the same as my main .as file. When I add it to the scene manually, dragging and dropping from the library, it works. But when I try adding it from a new starting .as file, I get a #1009 error. Adding a test movie clip with the same code works.

[Code]....

View 4 Replies

ActionScript 1/2 :: If Score Over Certain Point Next Level Button Visible In Game

Oct 2, 2009

I'm making game, where I must collect points. In end menu screen, i want that if my score's over 200, a next level button will be visible. Now it's visible every time when timer's out. I have tried this code
if (score < 200){
this.visible == false;
} else
if (score >=200){
this.visible == false;
}

View 3 Replies

ActionScript 2.0 :: Designing Game Level - How To Gain Scroll Access

Aug 13, 2010

I tried all zooms, placing objects outside there to gain scroll access, but it won't, and seem to be outside of some lighter gray plate... is it simply the limit? how the hell can I design the rest of my level?

View 3 Replies

ActionScript 2.0 :: Play Movieclip To Show Start Of Level In Game?

Nov 8, 2009

I have a game with multiple levels, which is working as I want it to. I would like to add just one extra bit of functionality. As each level starts, I would like a movieclip to play and then disappear after a second or so. The movieclip will just say "level 1", "level 2" etc, without any interaction. Ideally it will appear as the level loads, and then fade out to disappear.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved