TheFatMike
TheFatMike
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ ✅ Does not exist in the current context
figured it out im stupid didnt set up a way public float heal;
4 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
if (gI.jumpInput == true) { if (grounded == true) { rb.velocity = new Vector2(gI.valueX * speed, jumpForce); } else if (additionalJumps > 0) { rb.velocity = new Vector2(gI.valueX * speed, jumpForce); additionalJumps -= 1; } } gI.jumpInput = false; then it resets when my raycast hits the ground 😄 thank you @LLVM and then i call this function in "FixedUpdate" i have done "public int additionalJump;" so now i can make the jump pad change the variable when i need to thanks again for pointing me in the right tracks
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
😂
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
yeah we have "Jump force" to counter act gravitiy so i can change that also thanks for the help time to try and look after a dog and do this at the same time
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
and i will use trigger instead of collision
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
thanks i will get that sorted now
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
a way to do that with collision?
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
or is there a way to check for game objects directly
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
im still learning haha thanks for your time, should i be checking for scripts?
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
for the execution for jump
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
then contain the while loop inside the if statement
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
i will see what i can do
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
ahh ok thanks for that
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
private void OnCollisionEnter2D(Collision2D collision) { if(collision.gameObject.layer == jumpPad) { multiJump = 2; } }
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
i have on collision earlier that is multijump = 2
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
i just want while i jump if the multijump is set to 2 jump 2 times then land and set jump to 1
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
yeah
35 replies
CC#
Created by TheFatMike on 5/1/2023 in #help
❔ while statements
yeah thats what its doing haha
35 replies