#thread
1 messages · Page 1 of 1 (latest)
it just plays the block of code once
@winged hawk I don't get what you're saying #💻┃code-beginner message
crude example
I KNOW ITS ON TRIGGERSTAY2D
its just an example about the getkey part
triggerenter2d,triggerstay2d etc all part of physics update so not so good for input keys
@balmy moat if you want me to show you on ur code post it on pastesite.. but should be pretty self explanatory from easy example
alright I've changed my code to implement this
but the main goal of mine is to make the block of code i posted (https://hatebin.com/nlczooafjs) run every time the mouse is held
did u verify playerPickup.holdingWateringCan == true is always true ? when u hold
yeah i debugged it in the console
if u change the input like i said it will help
true is not staying every frame
i bet u its not
debugged console means nothing if ur not looking everyframe that its still true
????
i Debugged it in the Update function and when i pick up the watering can it's always printing true in the console + when holding down left click
I'll just work on this myself for now
bruh i told u how to fix it idk
u didnt change it how i said it so 🤷
show updated script
wheres the other one
does the debugfire when held ?
Debug.Log("mouse is being held");
yes