Odd bug with my project. (More specific title?)


#1

Hello.

I have a project I’m working on,


And for some reason, when you pick up wood (Tap use when close to a flower shape) after grass (Tap use when close to a weird text /\ thing) it doesn’t work.

But if you do the opposite, it works fine. I’m pretty sure the only objects using any variables for this are “whatcha got there?”, “inventory control”, and “shrub/scenery”. Please let me know if you can find what’s wrong, thanks.
@CodeHelp
@NindroidTester


#2

I would help but don’t have HS


#3

Hi @Petrichor

Not a solution but while looking I saw this

That’s just a small part of the really long conditional. Anyways, instead of

(child) x pos < (self) x pos + 100  AND  (child) x pos > (self) x pos - 100

and similar for y pos, you can do this

Abs[ (child) x pos - (self) x pos ] < 100

and similar for y pos. But there’s nothing wrong with what you have. This is just another option that’s gets the same result with less code.


#4

Hi again @Petrichor

Here’s the difference


When the grass is “used” first, ‘RIS result’ is getting set to something other than 0 so then the wood gets stuck in the ‘Wait until done’ recursion


#5

Oh, thanks.


#7

Sorry nindroid I was going to help out but it appears like the hopscotch mathematics god was earlier than me :triumph:

Tag me anytime though I’ll try to be as quick as possible


#8

The game seems cool, and you already got the answer from @ThinBuffalo, so good luck with the rest of the code!


#9

Well too late for me to help! Good luck🌟!

Lol who am I kidding I know nothing about code

-x

͡° ͜ʖ ͡°