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


Similar Posts:


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 :: 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 :: Draw A Square In Flash If Co-ordinates Are Is In XML?

Oct 14, 2008

How it is possible to draw a square in Flash if co-ordinates are is in XML?

View 3 Replies

Flash :: Reading X & Y Co-ordinates Of Tweened Object On Enter Frame?

Apr 15, 2011

explain why the lines drawn between the circles in the code below are not aligned with the centre of the circles? It seems the x and y properties of the circles are not up to date with their actual positions but how can this be?

import flash.display.Sprite
import fl.transitions.*;
import fl.transitions.easing.*;
var mcs=[];

[Code]...

View 1 Replies

Professional :: Create An Isometric Animation In Flash?

Oct 9, 2011

I would like to know if its possible to create an isometric animation in flash like the example below. In case I want to create an isometric figure like the first two objects shown and by mouseover they should lift up to the last figure shown. Its no problem to create the basic figures with Photopshop, but I dont know how to animate them in flash cs5.

View 12 Replies

ActionScript 3.0 :: Flash Isometric Location Markers

May 16, 2011

because I can't seem to do it myseld

View 1 Replies

ActionScript 3.0 :: Flash Isometric Z-soring By Coordinates Not X/y?

Jul 7, 2011

I want to do a z-sorting for an isometric game via i,j, sizeI and sizeJ of the objects, and not the x/y values. I don't plan on using z axis.

I have searched google a lot and only sorting via x/y comes up. Thus I have come, like always to Kirupa to ask for help and guidance.

If I failed to put some crucial detail to the problem don't be afraid to ask for it, I am in dire need of help

View 2 Replies

ActionScript 2.0 :: Isometric Art For Flash - Manipulating Individual Layers

Sep 20, 2009

Any open source programs or any other software that can create isometric buildings that are compatible with flash (i.e. being able to manipulate the individual layers like that of an imported Adobe Illustrator file)?

View 1 Replies

Flash :: Professional - Recommendations On 3D / Isometric World Engine Or Framework

Oct 22, 2010

I need to build a website with a virtual 3D world. I found a few products that can do it but I want so advise on which ones are leading the pack with the brightest futures. So far TheoWorlds and OpenSpace show some promise.

View 1 Replies

Flash - Isometric Engine Used For Social Games (Like Farmville / Happy Island)

Aug 19, 2010

1) Is an isometric engine used to render the world in social games. If yes, can you guide me somewhere where I can learn how to use it.
2) Also, how are the houses, buildings, farms and other objects placed via drag and drop. Is there any tutorial for that?

View 1 Replies

ActionScript 3.0 :: Flash - Generate An Isometric Grid Via Code Using Kirupa's Tutorial

Apr 8, 2011

I'm trying to generate an isometric grid via code using kirupa's tutorial but it's not quite working correctly as I'm trying to convert it. I am trying to generate a 5 x 5 grid with a unique coordinate to each square, but I can only get a row to form with the coordinates showing x = 5 and y = 5 for each square of the single row. There is also an unclickable square in the corner. Here is my code:

[Code]...

View 2 Replies

Position Item Using X And Y Co-ordinates?

Apr 26, 2009

allowing a user to enter there own x and y co-ordiantes and then a rectange gets position in the x and y co-ordinates declared

View 4 Replies

IDE :: Set The Co-ordinates Of One Object Relative To Another?

Jun 28, 2009

How should I set the Co-ordinates of one object relative to another?

Eg: Balloon, Monkey

If I need the Monkey co-ordinates fixed relative to the Balloon only and my Global or Stage Co-ordinates fixed at the Top - Left hand corner should not affect my Monkey's movements.

i.e Monkey's co-ordinates computed with respect to Balloon's only.

View 1 Replies

ActionScript 2.0 :: Positions Of MC (x And Y Co-ordinates)

Jul 20, 2010

I have 52 (pack of cards) movieclips on stage all turned invisible When selected they turn visible. and need to display in one of five set positions (e.g. x and Y co-ordinates). If the first slot if full the card should be displayed in slot two. IF slot two is full the next dard displays in slolt three. I card two is then removed and a space left the next card chosen should go in there.

View 3 Replies

ActionScript 3.0 :: MovieClip Co-ordinates And Surface?

Apr 22, 2010

There is something i do not understand, i'm making a Tetris like game and i want borders (limits) but when put an height and width to my MovieClip nothing appears.

Code:
public class Thugtris_V2 extends MovieClip
{
var ts:ThugtrisShapes;//ShapeManager.GetInstance().CreateShape(ThugtrisShapes.RLSHAPE);[code]....

I have second problem, i check my coordinates of my dropping shapes and my shape disapeared from the screen,fell completely down, and it's last coordinates were : pos = (x=-6, y=371).My bottom is suppose to be at 440? The entire screen does not "measure" 400 pixels? How can u get a negative coordinate,are'nt the coordinates suppose to be like texture coordinates, only positive and (0,0) is at the top left corner?How do u measure the pixels limits of the top DisplayObject? How are the coordinates actually "setuped"? Like cartesian but only the upper part?

View 5 Replies

ActionScript 2.0 :: Tween Movieclip To Set X And Y Co-ordinates

Nov 7, 2010

I am hoping to tween a movieclip from the outside of the stage to the centre. I have been trying but am unable to get it to stop in the centre. Attached are my files that I have been working with.

View 1 Replies

ActionScript 3.0 :: Coping With Display Co-ordinates?

Feb 8, 2010

Lets say you have a sitation where you have

Code:
stage
--container1 {30, 30}

[code].....

View 1 Replies

ActionScript 2.0 :: Changing X Y Co-ordinates Of A Level?

Jun 20, 2011

Is it possible to change the x y co-ordinates of various levels within a movie.I havecreated a movie that references a lot of other movies on different level and loads them when required, from buttons etc. I have since created another movie that is basically border/interface around the original parent movie. The original parent movie loads exactly where I want it to, but the subsequent movies still load with x:0 y:0 so they are all out. I figure the easiest way would be to change the x, y co-ordinates of the levels in the riginal parent movie but I can't seem to find a solution.

View 3 Replies

ActionScript 2.0 :: Attach Movie - Co-ordinates Not Recognized

Aug 8, 2010

I've set a movie to appear in my flash library using attachMovie. In the movie(Red), on release of a button there is a command that removes the movie Red/game_mc from the _root and code to make it an new file. I've given co-ordinates to other clips loaded in this way and they appear where they should.

[Code]....

The _root.game_mc being removed is an instance of a different movie clip loaded earlier. The problem is that the clip that loads at the origin (0,0) of the main document rather than the _x and _y co-ordinates from the clip.

View 4 Replies

ActionScript 3.0 :: Positioning Dynamically Created MC As Per Parent's Co-ordinates

Feb 18, 2009

I am generating some dynamic movieclips [reading polygons from SVG] and then adding them to a container movieclip [it happens to be a movieclip/class which was exported from FlashMC]. Now all these new movieclips are generated at runtime and I am not assured of their X and Y coordinates; I want them to be at a place where parent MC's co-ordiante falls.... say x:10, y:10.

Now the issue is i can not use MouseEvent.localX / stageX as I want the placement to happen soon after the MCs are generated. I hope I have described it to major extent...

View 6 Replies

ActionScript 3.0 :: Shouldn't LocalToGlobal Leave The Co-ordinates Unchanged?

Jan 12, 2009

I've got a clip on the stage at (100, 100) and I execute the following code:

[Code]....

Given that circle1 is on the stage, shouldn't localToGlobal leave the co-ordinates unchanged? I think the result of its call is wrong!

View 2 Replies

ActionScript 2.0 :: Scale A Beam To Mouse Co-ordinates/point?

Oct 23, 2008

I have attempted to make a movieclip scale in the y axis using _yscale but I can't seem to make it scale to the exact mouse co-ordinates.

Its within a rotating movie clip (controlled by the position of the mouse) and that works fine.

Here's the code I'm using at the moment.

Code:
onClipEvent(enterFrame){
var disty = this._y - this._ymouse
var dist = Math.sqrt(disty*disty)
this._xscale = 100 + dist;
}

View 6 Replies

IDE :: Drag, Drop, Then Save Co-ordinates To Xml File Or Database?

Oct 12, 2009

I'm not an expert in actionscript but I know a thing or two, but basically I've been given a task in a new web-based piece of software whereby users can drag and drop objects onto a background bitmap. The amount of objects and the co-ordinates of each object will then need to be saved for each user, so when they log back in (regardless of what machine they are using, they'll see where they have left off.)I've seen mentions of using the shared object, but this won't do as the user will not always be using the same machine.

View 1 Replies

ActionScript 2.0 :: Load Co-ordinates From Text File And Redraw Image?

Feb 17, 2009

I have just started with creating Drawing Pad, which can save and reload the image drawn once. I have completed the basic interface which includes drawing and erasing part. I am storing the co-ordinates in a text file. I am using MultiDimensional Array to store X,Y co-ordinates. But now I am facing a problem that how to load these variables into the flash back and using these redraw the image. I tried using 'loadvars', but it didn't helped me as it doesn't return string data. Can somebody help me in this so that I can load co-ordinates from text file and redraw the image.

View 1 Replies

ActionScript 3.0 :: Access X And Y Co-ordinates When A Mouse's Left Butto Is Clicked Upon A JPG File?

Dec 29, 2008

How to access x and y co-ordinates when a mouse's left button is clicked upon a JPG file whichis placed on a stage, so that we can view the jpeg contents on the stage?

View 7 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

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 :: How To Rotate Isometric Object

Apr 9, 2010

I need rotate an isometric object by actionscript.

View 3 Replies







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