Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed debug visuals for paths and advance node check for path motion

  • Loading branch information...
commit e09658aaddc2681f40d8d02b2111213aa565c69a 1 parent 5b3fd4b
@AdamAtomic authored
View
2  flx.py
@@ -112,7 +112,7 @@
lines.append('\t\t\tif(FlxG.mouse.justPressed())\r\n')
lines.append('\t\t\t{\r\n')
lines.append('\t\t\t\tFlxG.mouse.hide();\r\n')
-lines.append('\t\t\t\tFlxG.state = new PlayState();\r\n')
+lines.append('\t\t\t\tFlxG.switchState(new PlayState());\r\n')
lines.append('\t\t\t}\r\n')
lines.append('\t\t}\r\n')
lines.append('\t}\r\n')
View
4 org/flixel/FlxObject.as
@@ -190,7 +190,7 @@ package org.flixel
angularDrag = 0;
maxAngular = 10000;
- scrollFactor = new FlxPoint(1,1);
+ scrollFactor = new FlxPoint(1.0,1.0);
_flicker = false;
_flickerTimer = 0;
@@ -477,7 +477,7 @@ package org.flixel
}
else
{
- if( ((_pathCheck.x <= 0) && (dx >= 0)) || ((_pathCheck.x >= 0) && (dx <= 0)) &&
+ if( ((_pathCheck.x <= 0) && (dx >= 0)) || ((_pathCheck.x >= 0) && (dx <= 0)) ||
((_pathCheck.y <= 0) && (dy >= 0)) || ((_pathCheck.y >= 0) && (dy <= 0)) )
advancePath();
}
View
2  org/flixel/FlxPath.as
@@ -22,7 +22,7 @@ package org.flixel
nodes = Nodes;
_debugDrawSwitches = new Array();
_point = new FlxPoint();
- scrollFactor = new FlxPoint();
+ scrollFactor = new FlxPoint(1.0,1.0);
}
public function destroy():void
View
2  org/flixel/FlxSprite.as
@@ -115,7 +115,7 @@ package org.flixel
offset = new FlxPoint();
origin = new FlxPoint();
- scale = new FlxPoint(1,1);
+ scale = new FlxPoint(1.0,1.0);
_alpha = 1;
_color = 0x00ffffff;
blend = null;

1 comment on commit e09658a

@bibek1

cool

Please sign in to comment.
Something went wrong with that request. Please try again.