ActionScript 2.0 :: Create An Isometric Pseudo3d Terrain Generator?
Jul 12, 2004
I've been trying to use ActionScript to create an isometric pseudo3d terrain generator thing, using a dot movie clip. I come from a C programming background and i thought it'd be pretty easy to just attach a load of movie clips to the stage and put them all (well references to them) into a 2d array so i could call back to them with ease for the moving and the jiggery pokery
[Code]...
View 2 Replies
Similar Posts:
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
Dec 21, 2008
I come across this free tools of making GIF banner at this site :[URL] As far as I could guess, the creator made it in Flash, I m trying to make an equivalent Flex application, and here some problems I encountered : -When press Generate Text button, I guess this application should make a new movieclip ( in Flash ) addEventListener to it,so it could be drag&drop, inside the movie clip was a Child of TextLabel with the fontFamily,fontSize,color depends on the combo boxes ==> So in my Flex application I tried to use the RichTextEditor Components, it worked great ( provide text/font/size/color selection ) but when I make a new button, say "Create Text" , I make a new label, but problem is that in programmatic API, Label wont have property such as fontFamily, fontColor, etc to be set with, so I only get the text by myLabel.text = richTextEditor.text, is there a work around ?
- When I use AS to change the rotation of the label, the label did rotate, but the label.text no longer display, =/, button reacts the same when I change the rotation, the frame would rotate without text inside the button frame, like always =)), is there a work around for it ?P.S : Is it possible to export from flex application a canvas to a GIF ? I mean, I made a canvas inside my Flex application, I loaded a picture in it, I drag&drop some text inside the canvas, and in the end, could I export the canvas's contents as a GIF/JPG/PNG file ? P.S: Talk about the RichTextEditor components, after choose font,size,color, I have the disire Text with font/color/bold/italic... just by typed in the text box, but how to get that Text ( full properties ) as another component and add drag & drop to it ?
View 2 Replies
May 11, 2010
I want to create a random name generator from a list of certain names seems simple but i'm not really sure [code]...
View 2 Replies
Oct 11, 2010
I'm totally new to ActionScript 3 and just trying some very simple things to try to understand how it works in Flash CS5. I have no-one mentoring me so these forums are my first port of call. I wanted to create a simple random number generator. Very simple. Click on a button (first_50) that displays a random number in a text box (main_balls.text) set to Classic/Dynamic. The script I have is as follows:
first_50.addEventListener(MouseEvent.CLICK, firstFiftyGenerator);
function firstFiftyGenerator(limit:Number):Number
{
var randomNumber:Number = Math.floor(Math.random()*(limit+1));
return randomNumber;
main_balls.text = String(firstFiftyGenerator(50));
I get no errors in the compiler and my button works in runtime. I just don't get a number in my text box when I click on it.
View 5 Replies
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
Nov 6, 2010
I'm doing a project at the moment where I am creating a side scrolling platformer in AS3. Currently I have:
-The "Character' which is a ball that can be controlled using the arrow keys and has bounce, friction, gravity etc.
-A scrolling system, the character can move freely within an invisible inner boundary, once the character leaves this boundary the background will scroll to compensate.
The thing I am having issues with is creating collision detection between the "Character" and the "Background.Ground" so that the character can move along the shape of the Ground movieclip within the background movieclip.
Actionscript Code:
package{
import flash.display.Sprite;
import flash.events.Event;
import flash.display.MovieClip;
import flash.display.Stage;
import flash.geom.Transform;
import flash.events.KeyboardEvent;
[Code] .....
View 21 Replies
Nov 15, 2009
I'm trying to make a realistic scrolling terrain for a game I'm making. all of the movement and collision detection is 2d, but I need to make the terrain look more real.
does anyone have an algorithm for simulating a 3d terrain in 2d with the geom.Matrix class?
I know how to implement one, but I'm not sure about the logic for a transformation like this
View 0 Replies
Mar 11, 2005
How do you make destructable terrain in a game?
View 1 Replies
Dec 3, 2011
I'm trying to create simple 2D action game, something similar to well known Fancy Pants Adventures :) I've been looking for answer for more than week and all I've found is [URL] which not answers the question. (I've found also moving on platforms that are rotated but that's not I'm looking for). I have also found great (and free!) flash game engine - CitrusEngine which I'm currently using, but, it doesn't provide moving hero along curved terrain. How to make hero moving along curved terrain like this one: [URL]. There are plenty of games like this (for ex. Fancy Pants or Robot Unicorn Attack) where main character moves along the curved terrain but I can't find answer how can I do that.
View 2 Replies
Feb 28, 2006
Does anyone know how to remove parts of a shape (in a movieclip) using actionscript? Something like reverse masking (where the opaque parts hide the image) or just actually modifying the shape. I've seen it done, but I have no idea how to do it. I've tried using masks, and I saw something about masking the mask but when using setMask() you cant mask a mask. I'm looking for an effect much like the explosions in Serious Santa at NewGrounds [URL]
View 1 Replies
Aug 13, 2009
I've created a game engine using bitmaps and box2D, the floors for the game engine is made out of a number of lines which then has a bitmap fill applied to it, then it adds a little bit of grass on top of these floors....Here's a quick video to show you what I'm talking about:http:[url].....
This all works fine on my main computer, but when I move over to my netbook, I struggle to get 10fps... Because of this I am now looking for as many ways as possible to improve the efficiency of my code. So far what I've done that appears to of had some positive effect is:
- Use bitmapCaching on layers where it's appropriate to do so.
- Use scrollRect to scroll on only the necessary part of each of the layers.
However I'm still having big problems when it comes to scrolling the terrain on my netbook - are there any ideas that anyone might have which might be able to speed up the game slightly?
View 1 Replies
Nov 12, 2011
i need to make scrolling terrain but dont have how to do it for the code? What i want to do is 5 objects lets call them A,B,C,D,E scroll down the screen in random positions
View 15 Replies
Aug 15, 2005
I was unable to find any good tutorials or hints on terrain scrollers that isn't random.. like a huge world, and a map that points where on the map you are.
View 4 Replies
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
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
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
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
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
Apr 9, 2010
I need rotate an isometric object by actionscript.
View 3 Replies
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
Feb 11, 2012
I've been trying to make a small isometric game, based on a grid of hexagons. So far I've managed to draw the hexagons and fill the screen. However, I can't seem to find any tutorials or information on how to convert them to an isometric view. The ones I have seen assume you want to draw squared and boxes. Does anybody have suggestions on how I do this?
View 2 Replies
Jun 19, 2003
How to snap a shape to an isometric grid? The grey piece is draggable and when you release it it should snap to the grid. I know how to snap it to a regular grid but to a isometric grid is imposible I think.
View 11 Replies
Sep 14, 2007
A few people asked me how to get isometric (3d) coordinates from the mouse click (2d).
The answer is: you have to assume that one of the x, y or z coordinates is fixed.
The original tutorial: [URL]
Original equations:
Code:
xFla = (x-z)*Math.cos(0.46365) + xOrigin
yFla = yOrigin - y - (x+z)*Math.sin(0.46365)
Legend:
[Code].....
View 2 Replies
May 16, 2011
because I can't seem to do it myseld
View 1 Replies
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
Dec 26, 2011
Any simple path finding method for my isometric game im making. The game consists of a character in a 7x7 isometric grid and you can buy items from the shop and you would be able to pick up and set down the items but I know how to do that what I need is to find a way lets say theres an item using a tile and I click further from that tile the character would need to walk around it ill do all the _rooting for where the character faces and stuff I just need a simple way to let my character know how to walk around stuff heres where my games at : (not done, my character can walk but with a cheap algorithm I made, he cant even walk everywhere ) [URL]
View 4 Replies
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
Mar 11, 2011
I am developing an isometric game but I want the user to be able to see all sides of their character. Is it possible to import a 3d model into an actionscript (flash)? Also is this a good idea? Or should I stick with the basic 2d sprite idea?
View 1 Replies
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