Author Topic: v1.52 up  (Read 2808 times)

Adam Atomic

  • Founder
  • Key Contributor
  • *****
  • Posts: 852
  • Karma: +0/-0
  • new dad
    • View Profile
    • Adam Atomic
v1.52 up
« on: Sat, Jan 9, 2010 »
Tried to address most of the outstanding bugs in the issue queue, and also included some fun new utilities from my internal builds for SECRET PROJECTS??

1 - New variable FlxG.dilation.  If you want to do for example Peggle-style slow-motion during close calls or you want to do bullet time, just set FlxG.dilation to some value between 0 and 1 (0.5 is half-time)

2 - New function FlxTilemap.ray(), which shoots a ray from one point to another on your level, and returns a point representing the spot where the ray first intersects a collidable tile.  I think it's fairly well optimized??

Have fun!

Bjorgen

  • Member
  • **
  • Posts: 59
  • Karma: +0/-0
  • Party hats ftw!
    • View Profile
    • Project Morsel
Re: v1.52 up
« Reply #1 on: Sat, Jan 9, 2010 »
Woot,,, I was talking about needing the ray function just the other day.

Eiswuxe

  • Guest
Re: v1.52 up
« Reply #2 on: Sat, Jan 9, 2010 »
And I implemened the "dilation" functionality myself for testing purposes :D
Adam, it is cool to see that the framework that fits my every needs really exists! Thank you very much :)

zuperxtreme

  • Contributor
  • ****
  • Posts: 254
  • Karma: +0/-0
    • View Profile
    • Buddah
Re: v1.52 up
« Reply #3 on: Sun, Jan 10, 2010 »
Love this, keep it coming. ;D
..."without order nothing exists, without chaos nothing evolves"... 
Zoklet.net

axcho

  • Active Member
  • ***
  • Posts: 174
  • Karma: +0/-0
    • View Profile
    • Evolution Live!
Re: v1.52 up
« Reply #4 on: Sun, Jan 10, 2010 »
Awesome, I like the new features. :D

Found a bug though:

The pause menu appears on the lower right corner, instead of the middle. I fixed this by changing FlxPause.as like so:

Code: [Select]
x = (FlxG.width-w)/4; // formerly (FlxG.width-w)/2
y = (FlxG.height-h)/4; // formerly (FlxG.height-h)/2

That seems to fix it...

nitram_cero (2bam)

  • Contributor
  • ****
  • Posts: 484
  • Karma: +0/-0
    • View Profile
    • 2BAM
Re: v1.52 up
« Reply #5 on: Thu, Jan 14, 2010 »
Hi Adam, cool features!

About dilation, I believe it would be better (more intuitive) to call it timeScale or timeFactor or something.
Also capping to 1 disables the ability make it go faster (like twice using dilation=2) but in that case dilation wouldn't be a good word for it (asi it's expanding instead of dilating time).

Cool feature the ray-tracing. Totally awesome for AI and high-speed (non viewable) bullets :)

Regards

Adam Atomic

  • Founder
  • Key Contributor
  • *****
  • Posts: 852
  • Karma: +0/-0
  • new dad
    • View Profile
    • Adam Atomic
Re: v1.52 up
« Reply #6 on: Thu, Jan 14, 2010 »
yea agreed!  i'll work on that again next week i think.  in the meantime i pushed up a couple fixes - one of the pause screen thing (was a FlxLayer bug) and then some small changes to the way FlxG.createBitmap and FlxG.addBitmap work, there were some bugs with the bitmap cache