It is not the only contain of the project, is it? Because FlxBar not works like that. There must be other things affecting it. (like using Threads or... I don't know.)

eminfedar
@eminfedar
Posts made by eminfedar
-
RE: Is there project.xml settings that affect how FlxBar works???????
-
RE: How do I "launch" a FlxSprite from an angle, kind of like angry birds?
@Aideon if the user perfectly make 90 degrees between cannon and mouse, there will be no velocity at left or right. (because cos(90) equals 0 and the main velocity you entered will distribute by sin and cos values of the angle.
- sin90 = 1, cos90=0,
- so
velocity.y = sin90*mainvelocity;
=>1*velocity;
andvelocity.y
equalsmainvelocity;
velocity.x = cos90*mainvelocity;
=>0*velocity;
andvelocity.x
equals0;
// so there is no velocity at x`
-
RE: How do I "launch" a FlxSprite from an angle, kind of like angry birds?
You can use:
-
FlxAngle.angleBetweenMouse(Object:FlxObject, AsDegrees:Bool = false);
or -
FlxAngle.angleBetweenPoint(Sprite:FlxSprite, Target:FlxPoint, AsDegrees:Bool = false);
for setting angle of object. -
Then set velocity from angle.
use FlxVelocity.velocityFromAngle();
-
Don't forget to set gravity (so the object can fall)
object.accerelation.y = 100; // gravity
-
-
RE: Haxe List Sort
Which line is Main.hx:18?
You can change the function parameters like this:
function( personA:Person, personB:Person ) : Int
EDIT:
Take a look at 43. line.
Error is about this:sort<T:{prev:T,next:T}>
https://github.com/HaxeFoundation/haxe/blob/development/std/haxe/ds/ListSort.hxIf you have a single linked list (just has property of next element) you must use:
ListSort.sortSingleLinked(); // sortSingleLinked<T:{next:T}>(list:T, cmp : T -> T -> Int) : T
-
RE: Questions about ScaleMode
Hi, welcome!
- You can change the scaleMode programmatically with
FlxG.scaleMode
and ScaleModes for example:
FlxG.scaleMode = new FixedScaleMode();
- You can change the background color with changing the
FlxG.camera.bgColor
for example:
FlxG.camera.bgColor = FlxColor.BLUE;
or
FlxG.camera.bgColor = FlxColor.setRGB( 0, 0, 255, 255); // (RGBA)
- You can change the scaleMode programmatically with
-
RE: need sprite to follow the path of the tiles but stay touching the tiles.
You should implement a pathfinder algortihm.
You can get benefit from here: http://www.policyalmanac.org/games/aStarTutorial.htm
-
RE: Build for Raspberry
I've found that answer in this link:
Try:
lime rebuild hxcpp linux -rpi
and:
lime rebuild hxcpp linux -rpi -static
You can try it.
-
RE: Best resolution for an HD game
I think Full HD (1920x1080) is enough for almost average. If you make 2K or 4K graphics for a basic game, file size of the game will be too much. Lower graphics is not good too. FHD is best for now.
-
Why HaxeFlixel 4.1 uses OpenFL 3.6.1 or older?
Why HaxeFlixel 4.1 uses OpenFL 3.6.1 or older? Why not 4.0.3?