ActionScript 2.0 :: Isometric Chat - Cant Get Object That Are Bigger Than One Tile On Mij Stage?

Sep 13, 2006

I have a little problem with my isometric tile chat beceause i cant get object that are bigger than one tile on mij stage beceause the depths dont seem right then.This is wat i have at the moment:But as you can see the building intersects with the wall.Here is my code for making the map:


Code:
myMap1 = [[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
[1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[code].....

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Basic Isometric Tile Map - How To Implement Zoom

Oct 15, 2011

package {
/**
*Example of creating a basic isometric tile map
*/
import flash.display.*;
import flash.events.*;
public class IsometricTile extends MovieClip{
[Code] .....

View 5 Replies

ActionScript 3.0 :: Formula For Calculating "true" Isometric Tile Row/number?

Nov 18, 2010

I'm trying to do a isometric game, diamond shaped stage. And want to know how the formula for translating the mouse position over a tile into the correct row/column of it.

[Code]...

View 7 Replies

ActionScript 3.0 :: How To Rotate Isometric Object

Apr 9, 2010

I need rotate an isometric object by actionscript.

View 3 Replies

ActionScript 2.0 :: Cleaning Stage Filled With Isometric Objects

Mar 2, 2005

I have a stage that's filled with dynamically generated isometric objects [ in the shape of a smiley, placed according to an array ], and when I click a button, I would like the stage to be cleared, then another frame with another isometric code and another array to load. The problem I am facing now is that the items positioned from the smiley are still on the stage if the next array is smaller than the previous one. Any way I could clear the stage before going on the next frame? Currently, I tried unloadMovieNum(depth) in between with this code:

Code:
n = 50;
onEnterFrame = function(){
trace(n);
n--;
unloadMovieNum(n);
if ( n<=0){
nextFrame();
} else { stop(); }
}
What happens is that it clears the stage, but doesn't load anything in the following frame.

View 8 Replies

ActionScript 3 :: Isometric Grid Movement For Object In Game

Mar 4, 2011

I am currently creating a game similar to cafe world, farmville etc (social game). Would like to know how could I make an object move in an isometric direction when my mouse move. For example, when I want to build a house, I click on the house build button, and when my mouse move, I want my house object (stored in the library) to be move together with my mouse in an isometric direction. To give you all a better impression of the solution i am looking for, click on this link for a sketch: [URL]. So I want something like only when my mouse move 20 units more than the original mouse position, then my house item should move to the next grid.

View 1 Replies

Professional :: How To Tile Picture In Background Off Stage

Jun 11, 2010

Okay, since my stage doesn't take up the whole window when viewing it on the Internet, is there a way to tile a picture in the background? So no matter how big someone's screen is, in the background they will see a tiled picture.

View 4 Replies

ActionScript 2.0 :: Full Browser Flash - Element To Be 'bigger' Than The Stage?

Jul 16, 2007

I'm working on a full browser flash site and it works great, its got a 1000x650 movie in the middle centred in the html and the background colour of the movie fills the rest of the stage, no margins, no mess!

Thing is, I need a black overlay to fade in (to put other content over the top) Thing is, the black box only resizes to the size of the stage not the full browser window! Heres the code at the moment:

// Stops the stage from scaling with the browser window.

[Code]...

View 8 Replies

ActionScript 3.0 :: IsoMetric Grid - Dynamically Draw Out An Isometric Grid

Jun 11, 2011

I'm trying to dynamically draw out an isometric grid but I'm hitting a few problems, currently I'm using a matrix transformation to get the grid to look more isometric that tile based but it has it's problems so I want to add the grid with out using the matrix transformations. currently I have..

[Code]....

I tried to draw it out using Sin ,Cos and Tan functions to try to set the coordinates but it didn't behave like I had expected,

View 9 Replies

ActionScript 3.0 :: Tile An Image On Stage To Fill Background Using It?

Apr 11, 2012

I have a small image which is to be tiled on background filling it completely.

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.0 :: Tile A Pattern Across The Stage But Load It With Loader (png File)?

Aug 21, 2009

I want to tile a pattern across the stage, but I want to load it with loader (png file).I used to do it like that, Tile being bitmap in the library with export name Tile

Code:
var pattern:Sprite = new Sprite();
addChild(pattern);
var g:Graphics = pattern.graphics;
function resizeHandler(event:Event=null):void

[code]....

what do i need to do actually to send this to beginBitmapFill ?

View 9 Replies

Java :: Best Language For Video Chat (similar To Chat Roulette) With MySQL

Jan 19, 2011

What would be the best language to use to write a script similar to chat roulette but interact with a MySQL database of users.

View 3 Replies

Android :: List Component Good For Chat Displaying Chat Data?

Mar 29, 2012

i want to create a chat app using flex 4.5 mobile project for android device. For the chat screen, i wanted it to look glossy and stylish. Hence i thought i would use the list component and disable the selection in it. I m able to add the chat messages into the list. But i doubt if large chat data might hinder the performance. Im using a collection and i ve binded it with the list. Whenever i receive a chat i update the collection and it gets displayed in the list. Can someone tell me if his could pose a performance problem as list component is not intended for this purpose.

View 1 Replies

Media Server :: Make Text Chat Application Using Shared Object?

Jan 21, 2010

I'm trying to make text chat application using shared object. I'm using api Shared.getRemote("so",m_nc,true); to make the data persistent. It makes the file with extension fso. I want to save the chat history in notepad for further reference, and also load that data as per requirement.

View 1 Replies

Flash Chat Vs Other Kinds Of Chat

Jan 16, 2012

What is the best type of chat program for people to chat one on one?

1. Does flash chat impair SEO?
2. How would you compare the server load/speed of flash chat vs other types of chat, such as cometchat, ajax chat, of java chat?

View 3 Replies

ActionScript 2.0 :: 'Flash Chat' Room To Chat With Flash Devleopers?

May 21, 2009

Does anyone know of a 'Flash Chat' room to chat with Flash Devleopers?

View 1 Replies

ActionScript 3.0 :: Cannot Visit Stage Attribute Before Display Object Added To Stage

Oct 22, 2009

I have a library swf (asset.swf), it's document class binded to Asset.as, and in the Constructor function of Asset,[code]as known to all, we cannot visit the stage attribute before the display object added to the stage.so, when my loader.swf try to load asset.swf, it throws exception and the loading come to failure is there some one tell me how to load the asset.swf? I cannot modify the asset.swf.

View 0 Replies

CS3 :: Start From Scratch Or Move Every Object That Is Off Stage Onto Stage

Jul 30, 2011

figure out why the movie i just made is off stage. I just I don't want to start from scratch or move every object that is off stage onto stage. What did i do to get it here to begin with???

View 1 Replies

ActionScript 3.0 :: Object Position On Stage Without Using Stage.align

Apr 23, 2010

I have a stage bigger than the size of a browser, and I have a camera to navigate around the area.Now when I click on a button, I will have something pop up blocking the whole browser, like a lightbox effect with another box on top of the blocker.The problem now is, when the blocker pops up, its position is not on the TOP LEFT corner of the browser. I've tried stage.align, but it would makes the camera or other object on stage position run.So is there any other way I could get the blocker to position according to the browser, not the stage?[code]

View 1 Replies

ActionScript 3.0 :: Detecting Stage Object Positions From Library Object Class File?

Sep 14, 2010

Ok. So heres what I am trying to do. I want one movie clip to follow another one that I move around with actions on the main timeline.The problem is that the follower clip is linked to a class file and I cannot find a way to find the players position.

[Code]...

View 8 Replies

Actionscript 3 :: Difference Between Object Main Timeline, Object Stage And Root ?

Sep 3, 2011

I want to know the difference between [object main timeline], [object Stage] and root in as3? I have read from the topic How stage, root, and MainTimeline Fit Together. But I didn't get clearly.

View 3 Replies

Flash :: Using HitTestPoint With Stage Object To Create Object Boundaries

Dec 15, 2011

I'm trying to create a boundary for a player object, controlled with arrow keys, in my game using the main stage's height and width. For example, one test point is at the top edge of the player object's bounding box so that when the player object's head touches the stage's top edge, the player can't move anymore to the north. The player object is manually instantiated to the center of the stage by using the Flash stage editor so it will start at the center before the program starts.The problem is that right at the start of the program, I can no longer move the player object up or down with the arrow keys but I can still move it left or right. The intention is to allow the player to move north until the player object's head touches the top edge of the main stage.[code]

View 1 Replies

ActionScript 3.0 :: Make A Class Object Interact With An Object On Stage?

Aug 2, 2010

The following is that long only because I gave examples of what I want to know, not because it is complex .I have three basic questions regarding AS 3.0 classes.

1. How can I make a class object interact with an object on stage?

For example, when I have a square (mc_Square) with class "square" attached to it and I want it to trace "Colliding!" and print the X and Y of the mc_Box on contact with an on-stage *hollow* box (mc_Box) that has no class attached to it.how to do it vice-versa would also be awesome .

2. How can I make a class object interact with the same class object? For example, when I have two squares (mc_Square) that both have the class "square" attached to it and when they collide, it prints the X and Y of both of them.

3. How can I make a class object interact with a different class object?

For example, when I have two squares mc_Square1 with class "square1 (that also has a variable Primary=true written in it)" and a mc_Square2 with class "square2"; When they collide, the one with Primary=true would be removed and it's X,Y position traced.

View 2 Replies

ActionScript 2.0 :: Using CopyPixels On A Isometric Map?

Aug 4, 2009

How would I go about using CopyPixels to build an isometric map? CopyPixels takes a specific rectangle and copies that onto a bitmap.. But how would one use that to build a seamless isometric map?Building a square top-down tiled map would be very simple as copypixels pastes each tile next to one another.. But for Isometric Maps, this would be different as some parts of the CopyPixels rectangle is over lapped into other tiles.. and this would 'erase' the bitmap of the other tiles currently on the bitmap..[URL]Fig2, is what happens when you try to do a copyPixel over an existing bitmap, assuming the white is transparent space.

View 0 Replies

ActionScript 3.0 :: Convert Ellipse To Isometric?

Aug 15, 2010

how to convert an exact point on a 2d grid to an isometric grid with the following function:

code:
function convertToIso(pointSent:Point) {
var returnPoint:Point=new Point((pointSent.x- pointSent.y),(pointSent.x+pointSent.y )/2);

[Code].....

View 1 Replies

Flash :: Converting 2d Co-ordinates Into Isometric Ones?

Jul 25, 2011

Am updating a 2D game I made to have an isometric view, problem is am having issues when converting the 2d coordinates of given movieclips into isometric ones. The way I converted my game into an isometric one is just by rotating rectangular graphic 45 degrees and increasing its width such that its 2 times the height.I having problems converting all my 2D coordinates into isometric ones.Is there a function to convert them, or a mathematical formula I could use? by the way the game am making is not tile based, so functions that use tiles to convert the coordinates are not going to work unfortunately.

EDIT: I managed to fix it, I just changed the alignment to be the upper left corner, i.e. though the game is isometric and has a demimonde shape, I imagined that it is contained in a box, and that box's upper left edge is where it is aligned...this way both x and y coordinates r the same ones in both 2D and "isometric" view.

View 2 Replies

ActionScript 2.0 :: Using The Mouse For Movement In Isometric?

Nov 7, 2007

I've been reading a bunch of the tutorials about using isometric in flash but they all seem to have one thing in common. They all use the arrow keys for movement. I've been trying to use the mouse for movement but have only met with frustration so far. I can get the movement to work but then the object collision on the tiles doesn't work or vise versa.

View 2 Replies

ActionScript 3.0 :: Converting To An Isometric With A Matrix?

Jun 5, 2009

Using a matrix I'm tyring to turn a square into an isometric tile by skewing it upwards (y -30) and skewing it to the right (x + 60). This does giv the desired angles but the sides of the square are stretched and become incongruent. Is there some way to lock the sides from stretching when skewed with a matrix? Pictures speak loouder than words, the shape on the right is what I get and below it shows what I want: [URL]

View 9 Replies

ActionScript 3.0 :: Make An Isometric Grid?

Jul 15, 2011

I've built a grid of tiles using a bunch of variables and arrays, but what do I have to do to make it isometric?

As a note, I've done a few searches on isometric games, but none of their placement methods have worked so far (I don't know why).[code]....

View 4 Replies







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