Badges
This user hasn't earned any badges yet.Posts
|
Viewing 1 to 20 (51 Total) |
|---|
Re: Tilesheet.drawTiles with the length of valid elements in the arrayIf anyone's interested, I experimented with this feature a few months ago (see this commit). The speed gain was really minimal (almost null even with massive arrays) compared to an array.slice(). The only difference was with the GC usage, especially in Flash.
Posted on May 10, 2013 at 3:39 AM
|
(Follow the) Line - LD26Hi there !
Posted on April 29, 2013 at 6:38 AM
|
Re: New ForumsPlease stop using weird forum systems, and use a mature one (Vanilla is not, it gets messy very quickly and it's quite restrictive as Jon said - Jon from Stencyl, right ?). My vote goes to SMF...
Posted on August 30, 2012 at 3:29 AM
|
ScaleX & ScaleY with drawTile()Hi,
Posted on April 07, 2012 at 3:31 AM
|
Re: Device Orientation - specifically iOS targetsI'm in the same boat. Still haven't found a solution to this problem yet. There a shouldRotateInterface() in the Stage class but it doesn't seem to work or I don't know how to use it correctly. I made a thread a while agohttp://www.haxenme.org/community/forums/programming-with-haxe/orien... and I've seen some posts about that so it *should* work...
Posted on February 10, 2012 at 1:07 AM
|
Re: iCloud support for SharedObject on iOS1) Yep, actually the NSUbiquitousKeyValueStore is stored on disk until "synchronize" is called, and if there's no internet connection, it'll wait patiently until it can be synchronized again. At least that's what I've read in several Stackoverflow topics and some tutorials, like this onehttp://www.techotopia.com/index.php/Synchronizing_iPhone_iOS_5_Key-...
Posted on February 07, 2012 at 11:07 AM
|
iCloud support for SharedObject on iOSHi,
Posted on February 07, 2012 at 5:46 AM
|
Re: Stage3D support for cpp target+1 for OpenGL batch tile rendering. This would make NME seamless across all targets for display! Unless I misunderstood you, NME already has that feature (for cpp desktop/mobile targets only though). See the nme.display.Tilesheet class and the NME sample "20-Tiles".
Posted on February 05, 2012 at 5:36 AM
|
Re: Support for OpenGL Blend Modes in TilesheetI'd love this as well.
Posted on February 02, 2012 at 3:27 AM
|
Re: setTextFormat() broken on CPPIn the mean time, TextField.htmlText seems to be working correctly (flash & cpp).
Posted on January 28, 2012 at 7:33 AM
|
setTextFormat() broken on CPPHi, console.text = "This is a text example.\nLet's make it crash, shall we ?"; What I'm doing here is setting the TextFormat from the index 15 to 22 to a red colored font. On flash target, the following text will turn red : example On CPP : example. Let's make it As you can see the endIndex parameter on CPP is actually startIndex + endIndex, and as you can imagine, it'll crash the whole application if it goes out of text range (no Error thrown). A workaround for CPP would be : [quote]console.text = "This is a text example.\nLet's make it crash, shall we ?"; console.setTextFormat(new TextFormat(font.fontName, 8, 0xff0000), 15, 7);[quote] Except it doesn't work either, because the TextFormat will only be applied if endIndex > startIndex. I don't have a fix because I don't have everything I need nor the time to recompile NME, but I guess it should be a pretty easy job for anyone working on the SVN version (line 146-190 file TextField.cpp).
Posted on January 28, 2012 at 7:25 AM
|
Re: TextField / Keyboard bugSo, did you find a working trick using an event listener ? Because I'm currently working on a game that uses the keyboard in a few different places and I'll really need to come up with a workaround if it's not fixed when the game gets released...
Posted on January 24, 2012 at 12:43 PM
|
Re: Problem installing Haxe and NMEIn your "NME_test.nmml" file, make sure the package attribute in the app tag has 3 segments, like so :
Posted on January 24, 2012 at 10:44 AM
|
Re: How to stop screen tearing with drawtilesAbout the vsync : activating the vsync will synchronize your application framerate with your screen refresh rate which will avoid screen tearing (the "half frame" bug).
Posted on January 23, 2012 at 3:38 AM
|
Re: TileSheet flash implementationI believe a fix has been posted 5 or 6 days ago in the SVN repo.
Posted on January 22, 2012 at 1:03 AM
|
Re: Understanding Tilesheet.addTileRectThe centerPoint is relative to the top-left corner of your tile rectangle (so no, it's not absolute to the whole bitmap). Which means that if you have a 32x32 tile and you need to put the centerPoint in the middle, it'll be on 16x16. At least, in the CPP target. Haven't tried the Flash target yet, but it should be the same.
Posted on January 07, 2012 at 8:27 AM
|
Re: KeyboardEvent.keyCode shows wrong values on cpp (windows)I've noticed this as well, but I've made myself a small "Key" singleton so I don't have to worry about it anymore.
Posted on December 15, 2011 at 2:43 PM
|
Re: Input wanted -- drawTiles for FlashI have also heard that copyPixels can work faster with small reads/writes, but that beginBitmapFill and drawRect have a faster fill rate for larger textures, and that clearing a Graphics object is faster than clearing BitmapData. From my own tests, this is indeed true. One (very nice) thing about this approach is that we can also remain consistent with the C++ target, using a Graphics object instead of needing a Bitmap. Yeah I guess this is the main argument, it's best to keep things simple. I guess we'll see soon enough if the drawRect method is fast or not. I'll test it as soon as the next NME beta build is available.
Posted on December 15, 2011 at 12:00 PM
|
Re: Input wanted -- drawTiles for FlashHow do you feel about calling tileSheet.drawTiles (mySprite.graphics, ...); instead of mySprite.graphics (tilesheet, ...); ? This. Do it. It would be so much better and cleaner (also for the cpp target). Also, I was curious if you guys had rendering code on-hand to make sure this runs as fast as possible. I actually have a graphic engine which exclusively uses drawTiles for the rendering (and features like automatic sprite batching, low memory footprint, etc). It's very fast on cpp/windows and cpp/ios. I can't compile against nme-svn right now, but be sure I'll test it asap on flash target with this new drawTiles method. I just took a look at the code on (http://code.google.com/p/nekonme/source/browse/trunk/nme/display/Ti... ). Is there a reason you're using a fillBitmap with a drawRect instead of a faster copypixels ? I know copypixels can't do transforms, but I believe something like this would be faster (needs to be benchmarked, but I'm almost sure) :
Obviously, this would mean keeping a BitmapData reference for each Graphic to draw tiles on. But it should be faster.
Posted on December 15, 2011 at 4:30 AM
|
Re: TransformGestureEventsI'm interested in this as well. Swipe is easy to emulate, but Pinch, Zoom and other multi-finger gestures can be a pain in the ass to get correctly.
Posted on December 12, 2011 at 4:26 AM
|

