Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-11-2008, 11:52 AM   #1
EddiE_K
Registered User
 
Join Date: Feb 2008
Posts: 17
Default [CS3][AS3] Tonypa's Tile Based Game Tut ISO

Hi all,

I've been working on tonypa's tile based games engine (http://www.tonypa.pri.ee/tbw/tut16.html) which I must say are excellent work and successfully converted (almost 100% as it should be) the file from AS2 to AS3...

I've been trying now to reproduce the AS2 tutorial for the ISO engine but with the mouse and I've failed miserably, as I have no clue how to do it all with the mouse.

If anyone did a conversion, I'd appreciate it immensely or if anyone could help me out with the code for the mouse move.

I thank you in advance, and I am attaching my keyboard version for AS3.

Regards,
Eddie
Attached Files
File Type: zip tonypa_isokey_AS3.zip (6.9 KB, 746 views)
EddiE_K is offline   Reply With Quote
Old 04-13-2008, 12:11 PM   #2
EddiE_K
Registered User
 
Join Date: Feb 2008
Posts: 17
Default

Nevermind, I solved this one. The solution was quite simple.

I created an onEnterframe event that was running to check the position of my character. Then from another function I was telling the new position to go to.

The missing link was to recall the object with a simple: var ob:Object = char;

Eddie
EddiE_K is offline   Reply With Quote
Old 10-10-2008, 01:55 PM   #3
jocce
Registered User
 
Join Date: Jul 2008
Posts: 5
Default

if you want to be able to add more tiles change:
if (map[i][j] == 1) {
myTile.gotoAndStop (2);
} else {
myTile.gotoAndStop (1);
}
To:
myTile.gotoAndStop (map[i][j]+1);

and dont forgett to and more game.Tile[x] functions: example below.
//walkable tile high grass
game.Tile2 = function () { };
game.Tile2.prototype.walkable = true;
game.Tile2.prototype.frame = 3;
jocce is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[AS3] Tile based game. Storing the levels. tracisummers Gaming and Game Development 7 01-26-2008 01:01 AM
Help adding enemies to tile based game "Jungle Adventure" annieberry6 Gaming and Game Development 8 02-08-2007 09:30 PM
[AS2] Tile based game livijn Gaming and Game Development 0 04-02-2006 08:14 AM
[AS1] "Roads" and connections in a tile based game Chen Baiwan Gaming and Game Development 1 10-13-2005 04:21 PM
Life aspect in tile based game acurtiz Gaming and Game Development 1 03-29-2005 04:08 PM


All times are GMT. The time now is 01:19 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.