square-angle-35096
02/25/2023, 7:41 PMsquare-angle-35096
02/25/2023, 7:42 PMsquare-angle-35096
02/25/2023, 7:42 PMmillions-receptionist-99058
02/25/2023, 7:44 PMsquare-angle-35096
02/25/2023, 7:46 PMthousands-state-46635
02/25/2023, 9:44 PMhx
// player code
groundCheck.setPosition(character.x + groundCheckOffset.x, character.y + groundCheckOffset.y);
if (controls.binds['left'].pressed())
character.velocity.x = -200;
else if (controls.binds['right'].pressed())
character.velocity.x = 200;
else
character.velocity.x = 0;
if (controls.binds['jump'].justPressed())
{
trace('JUMP');
character.velocity.y = -gravity;
}
character.acceleration.y = gravity;
hx
// the collision.. just a simple FlxG.collide check
FlxG.collide(f, character);thousands-state-46635
02/25/2023, 9:45 PMthousands-state-46635
02/25/2023, 9:45 PMthousands-state-46635
02/25/2023, 9:52 PMlate-australia-6304
02/25/2023, 9:56 PMlate-australia-6304
02/25/2023, 9:56 PMthousands-state-46635
02/25/2023, 10:06 PMfast-jordan-74179
02/25/2023, 10:06 PMthousands-state-46635
02/25/2023, 10:07 PMfast-jordan-74179
02/25/2023, 10:09 PMfast-jordan-74179
02/25/2023, 10:09 PMfast-jordan-74179
02/25/2023, 10:10 PMwitty-island-52596
02/25/2023, 10:36 PMwitty-island-52596
02/25/2023, 10:38 PMwitty-island-52596
02/25/2023, 11:18 PMwitty-island-52596
02/25/2023, 11:19 PMwitty-island-52596
02/25/2023, 11:20 PMfast-jordan-74179
02/25/2023, 11:30 PMfast-jordan-74179
02/25/2023, 11:33 PMvar shaderShader: FilterShader = new FilterShader();
FlxG.camera.setFilters([new ShaderFilter(shaderShader.shader)});fast-jordan-74179
02/25/2023, 11:34 PMwitty-island-52596
02/25/2023, 11:36 PMwitty-island-52596
02/25/2023, 11:37 PMwitty-island-52596
02/25/2023, 11:37 PMwitty-island-52596
02/25/2023, 11:38 PM