#how would i make this so the match works for the randomized number output?
1 messages · Page 1 of 1 (latest)
Just have _input look for a mouse press while your mouse is in bounds should be sufficient. You can use get_rect to find the area. This might be easier to do with a button depending on use case
so you see the code i screenshot? thats what i want to work. i shoulda been more specific, mb
yeah i was thinking about changing it to that
What what does "work" mean in this case? What is it supposed to do? What is the "match" for?
The randomized number
Following these tips will increase your chance of getting good answers:
Helpers need to know as much as possible about your problem. Try answering the following questions:
- What are you trying to do? (show your node setup / code)
- What is the expected result?
- What is happening instead? (include any error messages)
- What have you tried so far?
Helpers often ask you questions to better understand your problem. Not answering them or saying "it's not relevant" is not helpful. Even if it is not directly relevant, there is a high chance the answer will give more context for the people that are helping you.
Please don't expect people to immediately help you. We all do this in our freetime. It may take some time until someone who can help you will answer.
randi_range() should help you with that
Ok cool
how would i make this so the match works for the randomized number output?
So ‘match randi_range’?
Nothing is stopping you from putting the randi_range directly in the match but I'd recommend creating the variable first like var selection:int = randi_range(1,5) or whatever. And to what Nancok said, we're both trying to help you and you made it very hard on both of us. We're working toward a common goal, but that's hard to do when you don't give us what we need to help you.
I would rather he actually say that, and thanks for the help
You're welcome
I am chill, but after seeing that you didn't get what i mean for 3 different messages. I tought it would be more efficient to use the bot's more extensive message.
It was either that or just ignoring the topic.
Three?
Anyways I don’t want to get into any argument I understand that I made a mistake
I was at camp for a week and am just in here again so I don’t have to look for this again