|
ETG
|
 |
« on: Tue, Feb 9, 2010 » |
|
I thought I'd share some additions to flixel that I made. http://github.com/ETG/flixelAnd an example project to show how it can be used: http://github.com/ETG/Example-TilemapsThe way it works is that there is an overlap you can set that will cause the tiles to be overlapped. There is also a bool that will cause every other row to be shifted over by half a tile. Check out the example project for some different ways to setup the maps for different types of tiles. Collision should work as well as can be expected, but you probably won't be using the collision with these types of maps anyways. It has been suggested I separate the hex tiles into a separate class, which might be a good idea. Let me know what you think. And I also added a hotspot to the cursor. It's an optional parameter when you call setCursor(). So now you can have a target reticule for a cursor and have the middle part where your clicking and stuff.
|
|
|
|
|
Logged
|
I visited #flixel on irc.freenode.net and became sexier and successful after just one application.
|
|
|
bjc
Newbie

Posts: 19
|
 |
« Reply #1 on: Wed, Feb 10, 2010 » |
|
Oh Wow! This is awesome! (and appreciate the demo code) Love the inclusion of a hex grid! This pretty much makes flixel the ultimate engine in bringing forth the indexed colour pallet revolution! I'm waiting for Ea/Maxis to jump onto this and re-release simcity x with multiplayer/competitive building and make another bajillion dollars with the franchise.
Oh man now I'm thinking Syndicate Wars clones... Why did I have to click on this forum post... so much inspiration, so little time.
Ad Eundum Ant Nemo. Kudos ETG
|
|
|
|
|
Logged
|
|
|
|
DaMaul
Newbie

Posts: 8
|
 |
« Reply #2 on: Fri, Feb 12, 2010 » |
|
This is great! Thank you so much for this, I was planning to do something isometric at some point in the future.
Would it be possible to extend this to enable 3d isometric levels?
|
|
|
|
|
Logged
|
|
|
|
|
Barts
|
 |
« Reply #3 on: Fri, Feb 12, 2010 » |
|
Very interesting indeed! I am still toying with the idea of isometric RPG, might use it at some point. I did check the demo, it looks good (haven't really checked the code yet tho). Thanks a lot for sharing this!
|
|
|
|
|
Logged
|
|
|
|
|
ETG
|
 |
« Reply #4 on: Fri, Feb 12, 2010 » |
|
Would it be possible to extend this to enable 3d isometric levels? That depends on how you wanted to do it. Got an example on the way you had in mind?
|
|
|
|
|
Logged
|
I visited #flixel on irc.freenode.net and became sexier and successful after just one application.
|
|
|
|
zuperxtreme
|
 |
« Reply #5 on: Mon, Feb 15, 2010 » |
|
Has anyone ported this to Flixel 2? I'm not savvy enough to port it, I tried changing the majority of the properties, but I don't know how to port: override public function collide(Core:FlxObject):Boolean in FlxObject, collide is calling FlxU: /** * If you don't want to call <code>FlxU.collide()</code> you can use this instead. * Just calls <code>FlxU.collide(this,Object);</code>. Will collide against itself * if Object==null. * * @param Object The <FlxObject> you want to collide with. */ public function collide(Object:FlxObject=null):Boolean { return FlxU.collide(this,((Object==null)?this:Object)); } I have no idea how to override that. :/
|
|
|
|
|
Logged
|
..."without order nothing exists, without chaos nothing evolves"... Zoklet.net
|
|
|
BrandonIsABadass
Newbie

Posts: 38
|
 |
« Reply #6 on: Tue, Feb 16, 2010 » |
|
This is almost exactly what I was looking for. How hard would it be to port this to version 2?
I'm still new to flixel, but I'll give it a try unless someone smarter than me could do it.
|
|
|
|
|
Logged
|
|
|
|
|
ETG
|
 |
« Reply #7 on: Wed, Feb 17, 2010 » |
|
I haven't had the time to work on this. I'll probably get around to updating to the latest version of flixel this weekend.
|
|
|
|
|
Logged
|
I visited #flixel on irc.freenode.net and became sexier and successful after just one application.
|
|
|
radioact1ve
Newbie

Posts: 2
|
 |
« Reply #8 on: Tue, Feb 23, 2010 » |
|
Great stuff here! Any updates on the 2.0 port?
|
|
|
|
|
Logged
|
|
|
|
|
ETG
|
 |
« Reply #9 on: Thu, Feb 25, 2010 » |
|
I'm taking next week off and I think I'll be able to work on this during that time. If not, it will be several months before I can work on it again.
I don't think it will take very long at all if I can just get the time to work on it.
|
|
|
|
|
Logged
|
I visited #flixel on irc.freenode.net and became sexier and successful after just one application.
|
|
|
|
zuperxtreme
|
 |
« Reply #10 on: Thu, Feb 25, 2010 » |
|
It would be awesome if you could ETG.  Cheers!
|
|
|
|
|
Logged
|
..."without order nothing exists, without chaos nothing evolves"... Zoklet.net
|
|
|
|
Barts
|
 |
« Reply #11 on: Fri, Feb 26, 2010 » |
|
Yes, if you have time, we would appreciate you porting it. However, it is already very nice of you to have shared it, so if you have more pressing matters, don't worry about it.
Cheers!
|
|
|
|
|
Logged
|
|
|
|
|
allenp
|
 |
« Reply #12 on: Wed, Apr 14, 2010 » |
|
Has anyone had time to port this to 2.x?
|
|
|
|
|
Logged
|
|
|
|
|
zuperxtreme
|
 |
« Reply #13 on: Thu, Jul 22, 2010 » |
|
Bumping this. Any progress?
|
|
|
|
|
Logged
|
..."without order nothing exists, without chaos nothing evolves"... Zoklet.net
|
|
|
|