FlixelCommunity / Flixel-Power-Tools

The Flixel Power Tools are a package of classes designed to provide extra functionality to your Flixel games. Originally created by Richard Davey (Photon Storm), this is the Flixel Community fork of the library, striving to keep the library living and up to date with the latest version of Flixel.
http://www.photonstorm.com/flixel-power-tools
Other
8 stars 3 forks source link

Problem with shrink time via FlxG.timescale and bullets fired with FlxWeapon. #10

Open FlixelCommunityBot opened 10 years ago

FlixelCommunityBot commented 10 years ago

Issue by test84 from Wednesday Oct 26, 2011 at 21:41 GMT Originally opened as https://github.com/photonstorm/Flixel-Power-Tools/issues/10


Hi,

I'm using timescale for some cool effects but when I set it to a value between zero and one, everything slows down except my bullets.

Problem is with how lifespan of bullets are calculated, I think. Because no matter how shrinked your time is, bullet's lifespan will be apparently calculated in real-time's time. For example my pistol' bullet's lifespan is 4 seconds but if you shrink time to 0.1, while bullet is still near the player, because the time is so slow in game, bullet will disappear after 4 seconds of real-time time.

since you probably won't update 1.9 anymore and will do a 2.0 version by xmas, what would u suggest to fix it?

-tnx