From 3673011f85017815b34f43ef8bfedf04393c0328 Mon Sep 17 00:00:00 2001 From: CyndaquilDAC <65635932+CyndaquilDAC@users.noreply.github.com> Date: Sat, 10 Jul 2021 22:54:04 -0500 Subject: [PATCH 1/2] Add gf to customize gameplay screen --- source/GameplayCustomizeState.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/GameplayCustomizeState.hx b/source/GameplayCustomizeState.hx index 7bcfa31..da52a68 100644 --- a/source/GameplayCustomizeState.hx +++ b/source/GameplayCustomizeState.hx @@ -33,6 +33,7 @@ class GameplayCustomizeState extends MusicBeatState var bf:Boyfriend; var dad:Character; + var gf:Character; var strumLine:FlxSprite; var strumLineNotes:FlxTypedGroup; @@ -74,10 +75,14 @@ class GameplayCustomizeState extends MusicBeatState bf = new Boyfriend(770, 450, 'bf'); + gf = new Character(400, 130, 'gf'); + + var camPos:FlxPoint = new FlxPoint(dad.getGraphicMidpoint().x + 400, dad.getGraphicMidpoint().y); camFollow.setPosition(camPos.x, camPos.y); + add(gf); add(bf); add(dad); From 7eac3fdca7ae2c9ad789484d0255d71e6cd64918 Mon Sep 17 00:00:00 2001 From: CyndaquilDAC <65635932+CyndaquilDAC@users.noreply.github.com> Date: Sat, 10 Jul 2021 22:55:05 -0500 Subject: [PATCH 2/2] oops forgot the gf scroll factor --- source/GameplayCustomizeState.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/GameplayCustomizeState.hx b/source/GameplayCustomizeState.hx index da52a68..2748e85 100644 --- a/source/GameplayCustomizeState.hx +++ b/source/GameplayCustomizeState.hx @@ -76,7 +76,7 @@ class GameplayCustomizeState extends MusicBeatState bf = new Boyfriend(770, 450, 'bf'); gf = new Character(400, 130, 'gf'); - + gf.scrollFactor.set(0.95, 0.95); var camPos:FlxPoint = new FlxPoint(dad.getGraphicMidpoint().x + 400, dad.getGraphicMidpoint().y);