Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - werem

Pages: [1] 2 3 4
help / Re: Collision in an "infinite" world?
« on: Mon, Jun 4, 2012 »
I just tryed enlarging the collision window with FlxU.setWorldBounds but doesnt work. I'm using flixel v2.43

I just try the FlxU.setWorldBounds with the width and height of the tilemap, but the enemys keep falling of the world.

I'm araid not, there is only a FlxG.followMax and FlxG.followMin, but none of them allow you to set the UpdateWorldBounds variable.

* I'm ussing Flixel v2.43,
* the player starts the level on position 0, 230
* the camera follow the player
* The enemyes are placed on the create() method
* All the enemys outside the screen does not collide with the terrain and fall into the void.

I see several posts regarding this issue, but none of the solutions seems to aply(IE, my FlxG does not support the FlxG.worldBounds method)

Any help will be wellcomed.

releases / Re: v2.50 demo activity
« on: Mon, Mar 26, 2012 »
I'm trying to migrate from v2.43 to v2.50. The classes are very different and the first try was all error-red. Several overrided methods no longer exist...

The reason I try to migrate is the color bitmap level design feature(,5086.msg28301.html#msg28301).

Is there a place when I can see the way to migrate from one version to another? Whats the best way to go?

Thanks in advance.

flixel version 2.55

Error says:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at org.flixel.system::FlxQuadTree/overlapNode()[C:\proyectos\FlashBuilder4.5\StoryTeller\src\org\flixel\system\]
   at org.flixel.system::FlxQuadTree/execute()[C:\proyectos\FlashBuilder4.5\StoryTeller\src\org\flixel\system\]
   at org.flixel.system::FlxQuadTree/execute()[C:\proyectos\FlashBuilder4.5\StoryTeller\src\org\flixel\system\]
   at org.flixel.system::FlxQuadTree/execute()[C:\proyectos\FlashBuilder4.5\StoryTeller\src\org\flixel\system\]
   at org.flixel.system::FlxQuadTree/execute()[C:\proyectos\FlashBuilder4.5\StoryTeller\src\org\flixel\system\]
   at org.flixel::FlxG$/overlap()[C:\proyectos\FlashBuilder4.5\StoryTeller\src\org\flixel\]
   at PlayState/update()[C:\proyectos\FlashBuilder4.5\StoryTeller\src\]
   at org.flixel::FlxGame/update()[C:\proyectos\FlashBuilder4.5\StoryTeller\src\org\flixel\]
   at org.flixel::FlxGame/step()[C:\proyectos\FlashBuilder4.5\StoryTeller\src\org\flixel\]
   at org.flixel::FlxGame/onEnterFrame()[C:\proyectos\FlashBuilder4.5\StoryTeller\src\org\flixel\]

The line that throws the error is

this ---->      _iterator =;
         return overlapProcessed;

line 571 function overlapNode class FlxQuadTree

Any idea?

Where is the "fixed" property in FlxSprite?

releases / Can you update the release notes please?
« on: Fri, Feb 3, 2012 »
The release notes in github seems to be outdated. I'm working with version 2.55 and the release notes stops on 2.43.

I have several override functions that stop working because there is no function to override!.


Thanks camasthecat!. Is there a place where I can get this information? Any clue?(which version this changes where introduced?)

I'm working with tilemap now(the main reason I made the update), and there are a huge change in this.

My main problem is that I made several overrides, and now the new version is rejecting my hack.

Whats the best way to proceed? I have a lot of work and I can't just cam here and post every function I have problems with.

What I'm missing now is:

renderTileMap on FlxTilemap.
hitLeft and so on in the class FlxSprite
postProcess on FlxState
FlxAnim class

This upgrade will be a pain :D


Some more missing classes:

hitBottom on FlxSprite?

Sorry for the questions, but I cant solve my problems with the release notes.

Where the FlxQuake class goes?
Where the createGraphic method from the FlxSprite class goes?


I was looking for this feature so long. The thing is, I can't make it work. Wich version you used to create it?

This is the error I'm getting once I get it running.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at org.flixel::FlxTilemap/overlapsWithCallback()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\org\flixel\]
   at org.flixel::FlxObject$/separateX()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\org\flixel\]
   at org.flixel::FlxObject$/separate()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\org\flixel\]
   at org.flixel.system::FlxQuadTree/overlapNode()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\org\flixel\system\]
   at org.flixel.system::FlxQuadTree/execute()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\org\flixel\system\]
   at org.flixel.system::FlxQuadTree/execute()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\org\flixel\system\]
   at org.flixel.system::FlxQuadTree/execute()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\org\flixel\system\]
   at org.flixel.system::FlxQuadTree/execute()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\org\flixel\system\]
   at org.flixel::FlxG$/overlap()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\org\flixel\]
   at org.flixel::FlxG$/collide()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\org\flixel\]
   at com.arc.lumberjack.state::Play/update()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\com\arc\lumberjack\state\]
   at org.flixel::FlxGame/update()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\org\flixel\]
   at org.flixel::FlxGame/step()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\org\flixel\]
   at org.flixel::FlxGame/onEnterFrame()[C:\proyectos\FlashBuilder4.5\Codename Lumberjack\src\org\flixel\]

Hey there, is some tutorial to por flixel into an Actionscript Mobile Project of Flash Builder 4.5? I'm trying to put flixel in an iphone 4 and keep working in actionscript.

I made some tests and is quite performant if you use bitmaps. So I think that flixel will works really good.

I tryed but get some errors(cant remember now). If there is some article or guidelines will be great. Thanks!

releases / Re: v2.50 beta thread!
« on: Thu, May 26, 2011 »
Is hard to use the FlxGroup.sort method in a group with groups. Even if you overload the sortHandler method so the group does not generates an error because does not have the "y" property, you can't be sure that the sprites sort correctly, because they are sorted inside the groups.

releases / Re: Flixel Iphone
« on: Tue, Nov 16, 2010 »
I try, it's slow like hell. See more details in my posts in this same thread.

help / Help on performance for iphone dev
« on: Wed, Oct 27, 2010 »
Ok, I'm a iphone dev(wanabee). I try to compile mode and other experiments done in flixel and run them into the iphone, and the result is painfully slow. Even the more simple test are slow in the iphone(I test with the device, not the emulator).

Can we try to make some more deep changues to be activated when the mobile = true is set?

If not, can we custom some classes in order to speed up the performance in this device?

I just read this thread

I dont try this yet, but I think is the way to go. I can do some test for my own and post them in this thread, but my time is limited and I think will be more easyer if more people post some code snipets and ideas.

Thanks in advance

help / Re: Line of Site Question
« on: Wed, Oct 27, 2010 »
please, edit your question title to "line of sight" in order to be easyly founded by other people.

Second, there are a lot of ways to do that. You must discard the performance expensive ones(use ray tracing and blurs is a NO).

You should use a circular bitmap simulating a ligt source that you use like a mask over a black rectangle. And project rectangular shadows only for certain objects(tiles and enemys). For project shadows, I mean delete rectangles of the mask via bitmap manipulation. The shadows project away the light source.

It's a little tricky but is doable and the experience should be good enought.

Hope this helps.

help / Help writing a C# translator
« on: Tue, Oct 26, 2010 »
I'll like to write a translator, from Actionscript to C#.

I need some help about how to handle the tranlation process in order to extend it easily when the translator doesn´t work in certain circumstances and make it work for other languages(objective C).

 The translator convert "var c:int = 0" to "int c = 0" very well, but cant process "var c:Number = 0". So you can add your case to the stack in order to translate "var c:Number = 0.5;" to "float c = 0.5F;"

Any ideas?


releases / Re: Flixel Iphone
« on: Tue, Oct 5, 2010 »
Now that Apple is playing ball with Adobe, has anyone tried exporting a Flixel powered project from FlashCS5 to the iPhone? Cheers!

I try compile "mode" and "works", but at something like 2 frames/sencond. I'm trying to develop games on iphone and it's a pain. I'm really hope that the flixel port of this lib come soon.


Pages: [1] 2 3 4