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


Similar Posts:


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

ActionScript 2.0 :: How To Snap Shape To Isometric Grid

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

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

ActionScript 3.0 :: Isometric Grid Movement On Mouse Click With Pathfinding Bug?

Mar 23, 2012

I am currently working on a very simple isometric3d game with a hero to move to mouse click position, using path-finding. I am trying to code everything myself step by step,as a beginner , i am well aware of asolib3d but I don't want to use it...I have read tutorials and few books I completely done with my isometric3d map. i create my path finding A-star class which is working perfectly with 2d grid tiles, but when i try to use it with isometric3d grid world it doesn't work properly.

ActionScript Code:
package  {
import com.sayConcept.isometric.IsoUtils;
import com.sayConcept.isometric.GraphicTile;

[code]....

my character movement is not correct. If hero position=0,0 and I click 0,10 on my iso grid instead of moving down he will move on the right side. If I am in the middle and I click on the left he will move right. and like few steps for where it supposes to stop... my pathfinding is ok in 2d but isometric the movement is weird...

View 0 Replies

ActionScript 3.0 :: Depth Control On Isometric Grid With Multi Tiled Objects

Mar 29, 2011

i am creating a isometric game looks something like farm ville and city ville..i almost done everything. but but problem is only with sorting depth. find the attached .fla. this code is working in certain situations but not every time.

View 1 Replies

Actionscript 3 :: Calculating Column And Row Number In An Isometric Rectangular Shaped Grid

Jul 1, 2011

I'm trying to extend an isometric Flash game based on as3isolib. The game does only support diamond shaped grids but I have to implement the possibility to have rectangular shaped grids, too.

[Code]...

View 1 Replies

ActionScript 2.0 :: Modifying A Kirupa Tutorial

Jun 21, 2006

modify this tutorial ([URL]) so that it does this: one of the external swf's has a button in it that loads another external swf in a different area of the stage, so now there would be 2 external swf's displayed on stage. Then, when one of the main buttons is clicked, the exit animation of the 2nd swf is played, then the exit animation of the 1st swf is played, then the new external swf is loaded in the same spot that the 1st one was.

View 2 Replies

ActionScript 2.0 :: Kirupa's PHP Socket Tutorial?

Oct 6, 2006

Will this tutorial work on servers like this? I read through the tutorial and the author links to his own socket server. Do we have to pay big bucks for our own socket server or can a regular cheap host's server be converted to one?

View 9 Replies

ActionScript 2.0 :: Regarding XML Guestbook Tutorial On Kirupa?

Aug 19, 2011

I have incorporated the following XML guestbook on my site and it works like a charm since its inclusion on my site

[URL]

How to send a mail to me when anyone adds a message on the guestbook ?I guess it is possible as whenever one xml object is send to the php file for processing by sendAndLoad function , it can also send a mail via php .....the code that sends xml data to php in this actionscript is

Code:
myXML.sendAndLoad("processXML.php", receiverXML);

can some code be added in the processXML.php which also sends a mail vial "mail" function in php ?

View 2 Replies

ActionScript 2.0 :: Kirupa Scrolling Text Tutorial?

Aug 24, 2004

Scrolling Dynamically Loaded Text Tutorial[URL]..Best I've come across I can edit the scrollTrack-mc, but I need to edit the scrollpane window itself to change it's b/g colour ( always white ) or more importantly to make it transparent Somebody

View 1 Replies

ActionScript 2.0 :: Adapted Kirupa Xml Slideshow Tutorial

May 9, 2007

I have adapted the kirupa xml slideshow tutorial.However I would like to create a up and down buttons that jog the thumbnails + or - 3 thumb images either way.Is this a case of creating an on (release) action that tells the slider to advance a specified distance??[code]

View 2 Replies

ActionScript 2.0 :: Hover Caption Tutorial On Kirupa

Aug 3, 2011

My query is in respect to the tutorial posted on kirupa : [URL] Now :

1) If I want to add a line of caption ,the moviclip expands in a horizontal manner. So , if I write a big description , the caption movieclip occupies whole stage width. How can i make this movieclip exapand in a vertical fashion after a fixed no. of characters

2) Suppose a button which is inside a movieclip has been applied this function , the button action doesnt work !!!! only the hover caption appears. ( specifically the button on(release) action ) !! What is the possible solution.

View 14 Replies

ActionScript 2.0 :: Amend The Photogallery Tutorial Using XML On Kirupa

Sep 28, 2004

I've just tried to ammend the photogallery tutorial using XML on Kirupa... [URL] I have uploaded a test file above... the first 3 images.. i have changed the link in the xml document to my own... but they are not loading in.. heres the changes i have made to the xml document....

[Code]....

View 4 Replies

ActionScript 2.0 :: Dynamic Scrolling Text Box Using Kirupa Tutorial

Dec 23, 2003

I've created a dynamic scrolling text box using the kirupa tutorial. It's the tutorial that uses self-made buttons to scroll up and down. In my movie I've got 7 buttons, when one is pressed I want to display different text in the text box. I have it working by loading text from .txt files but it is slow and does not allow me to format the text as I would like. What I'm thinking of doing is creating 7 keyframes on the timeline of the scrollable text. Then in each frame have the different text that I want displayed. When I click on a button it would go to one of those frames thus displaying the corresponding text. I can't get it to work. I've changed the text box to a static text box. I can't get it to move the playhead to the next frame in the text movie clip which the scrollable text box resides in.

View 2 Replies

ActionScript 2.0 :: Editing Random Movement Tutorial On Kirupa

Mar 29, 2006

I have a movieclip with a grid of 9 squares (3x3) what i would like to do is have each square move either on the x or y axis into a position of another square (like one of those puzzles where you move the tiles around to form a picture...) a random square in a random direction at random intervals.I have tried editing the random movement tutorial on Kirupa, but i cannot get the effect i need.url...

View 2 Replies

ActionScript 2.0 :: Stopping Auto-slideshow After One Run Through (Kirupa Tutorial)?

Aug 1, 2007

I'm using the Kirupa tutorial of the xml auto slideshow. I need it to stop after it runs through all the images one time.How should I modify the code below in order to do that

delay = 3000;
//-----------------------
function loadXML(loaded) {

[code].....

View 3 Replies

ActionScript 2.0 :: Putting Progress Bar Loading Animation In This Kirupa Tutorial?

Apr 4, 2004

[URL]i'm in the midst of extending/modifying this tutorial.... i understand the transition mc is the loading animation.... however i want to put a progress bar.. how do i achieve that..?

View 1 Replies

ActionScript 2.0 :: Make A Square Grid Of Fixed Side Length But Varying Grid Number Using Code?

Jul 5, 2011

I want to make a square grid of fixed side length but varying grid number using code.That is, the number of grids should be specified by the user (say 3*3) and after pressing a button, the stage should be broken into 3*3 grids.I don't want any code, just a method on how to do it. I have tried it by using simple loops but the method just fails for no reason I can figure.

View 5 Replies

IDE :: Adapting Kirupa's "Adding Thumbnails" Tutorial (MX 2004) Into Just Plain Old MX?

Jan 11, 2009

continue the success with incorporating the scrolling thumbnails feature to my current galleries.I have done my best to incorporate the code from Kirupa's "Adding Thumbnails" tutorial to my site, but have a feeling the loader class is only MX 2004 and on, and I'm using plain old MX. I have absolutely no thumbnails showing up at all.

PS I also found two discrepancies in the tutorial:

1. Initial code to be pasted has a line such as this:

Code:
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;

and later in the tutorial that same code is treated as this:

Code:
target_mc._x = hit_left._x+(target_mc._width+5)*k;

2. Initial code to be pasted has a line such as this:

Code:
}else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))){

but later in the tutorial when it's broken down it's listed as this:

Code:
}else if ((_root._xmouse<=(hit_left._x+40)) && (thumbnail_mc.hitTest(hit_left))) {

It's very difficult to test all possible variations in this, but I think I have, as there were 4 possible combinations since 2 lines of code varied. But none of them worked. Either way, would be good to know which users should be using. A little help in identifying: "snowThumbMC" is the name of my empty movie clip instance on my stage, in which I should be loading all of the thumbnails.

1. Is "target_mc" the name of an actual movie clip I should have on the stage somewhere? Or is it simply an empty one created via code to hold info?? I'm trying to figure out what exactly "target_mc" refers to.

2. Is "pictureValue" an actual value of a variable named "picture"? If so, should I have this variable on stage somewhere? I'm just not sure by reading the code (since I can't properly read it) what exactly "picture" refers to.

Code:
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;

[code].....

View 4 Replies

ActionScript 2.0 :: Fading Grid Tutorial Doesn't Work

Mar 16, 2005

I tried the fading grid tutorial but it doesn't work.Url...

View 1 Replies

Data Integration :: Using Flash To Generate Code?

May 27, 2007

am interested in using adobe flash to generate a codeout of the infomation a user inputs generally the idea is this 1.User inputs infomation such as age etc 2. a code gets generated 3.this code links in with the infomation that is given and i can nowtype is flash able to do this and if so how would i goabout doing it, if not what other ways would there be able treate something like this

View 1 Replies

ActionScript 2.0 :: Generate Grid View Of Box Using For Loop

Jan 2, 2009

I am trying to use for loop to load small grey box to display in the image below.

But i couldn't figure out how to put in the if else condition when the col hits 7 and bring it to the next row.

Below is my if else code:

container1 = new Array();
container1 = this.firstChild.childNodes; //drawing info from xml file
spacing = 13;

[Code]....

View 1 Replies

ActionScript 2.0 :: "Adding Thumbnails" Kirupa Tutorial - Import Transparent Gifs Via Swfs

Jul 14, 2005

This tutorial found on: [URL] Is extension of: [URL] The problem manifests itself when I substitute .jpg thumbnail with .swf one. (I need this because i need transparent thumbs, so i needed to import transparent gifs via swfs - i used [URL] to convert gifs to swfs if someone is interested - It is released under the GPL. ) XML is parsed ok, and the thumbnail is visible with other .jpg thumbnails. The problem is that it is not "alive": Clicking on it doesn't change the main image, hovering doesn't change its alpha:

[Code]...

View 2 Replies

ActionScript 2.0 :: PHP / MySQL / Flash Tutorial - Can't Get The Original Code To Work

Oct 16, 2005

I've modified the code to work with Pear, since I had it installed. However, I can't get the code to work. The consolation is I can't get the original code to work, either. You can find the original code's results here:

[Code]....

View 7 Replies

ActionScript 2.0 :: Change - Fading Grid Tutorial In Random Spots

Mar 4, 2004

i was jus doin that fading grid tutorial for fun and i was wondering what i would have to change to have the grip fade in, in random spots. like instead of having it fade in like left to right or up and down. but to have it fade in through random spots.

View 1 Replies

ActionScript 2.0 :: Photo Gallery XML Tutorial - Grid Thumbnails Version?

Aug 1, 2006

I saw the tutorial here on how to make a Flash XML photo gallery with a scrolling thumbnail bar. Awesome!

The thing is, the example he DIDN'T choose to illustrate is the one I want make - exactly.[URl]..Is there somewhere else I can find this? The problem is that I have say, 16 photos and I want 4 displaying on the stage at one time. I want a forward / back button available to switch through the remaining 12 images, when the user clicks the buttons (as opposed to a scroller, which I find difficult to control and therefore less useable).

The problem comes when loading the four images from my XML file. I am able to load the first four, but how do I indicate in AS that the next four images are to be loaded, until there are no more images left? What if I add 5 more, I want to be able to have that AS load them. I was using a mod function in my script, but I keep getting the wrong remainder. I'll have to post the code later.

View 1 Replies

Actionscript 3 :: AlivePDF Generate Pdf With Grid, Text Not Showing?

Apr 22, 2010

adding the grid to a pdf with some other elements on there as well.text is not showing up in some cases. I've tested myself silly on the computers i own but there doesnt seem to be a problem.However, the person i made this for keeps saying text doesnt show up. I've seen the results of his instance of this tool and the keen, trained eye suggests that every row gets stretched out to the bottom (and beyond) of the page. A select all copy paste into plain text app suggests there is no text in the pdf (except for the text that IS showing up)

View 2 Replies

ActionScript 2.0 :: Grid Tutorial - Make Multiple Images Fade Using Same Technique

Dec 24, 2003

i want to know how do i make multiple images fade using same technique

View 3 Replies







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