Discuss Scratch

moew_cat
Scratcher
51 posts

cant make ballon away from cat

l've been thinking and failed
More info: thinking and i cant make thebig “ballon” to go away from the cat. help?
project: https://scratch.mit.edu/projects/434012161/
semmiesem9
Scratcher
100+ posts

cant make ballon away from cat

Add this to your script:

foreversetxtoxsetytoyifxposition=xandyposition=ythenshowelsehide

Last edited by semmiesem9 (Oct. 8, 2020 11:13:08)

moew_cat
Scratcher
51 posts

cant make ballon away from cat

semmiesem9 wrote:

Add this to your script:

foreversetxtoxsetytoyifxposition=xandyposition=ythenshowelsehide
ok but it does not move the ballon “away” from cat
semmiesem9
Scratcher
100+ posts

cant make ballon away from cat

moew_cat wrote:

semmiesem9 wrote:

Add this to your script:

foreversetxtoxsetytoyifxposition=xandyposition=ythenshowelsehide
ok but it does not move the ballon “away” from cat
Sorry, I don't really know what you're asking for. What do you mean moving the balloon “away” from the cat? Doesn't that already happen?
deck26
Scratcher
1000+ posts

cant make ballon away from cat

Do you mean you want the balloon to be able to go off screen?
moew_cat
Scratcher
51 posts

cant make ballon away from cat

i said “ move ballon “away” from cat”
moew_cat
Scratcher
51 posts

cant make ballon away from cat

just try to think
help:
iftouchingcat?then. . .
deck26
Scratcher
1000+ posts

cant make ballon away from cat

Point towards the player and move -5 steps?
moew_cat
Scratcher
51 posts

cant make ballon away from cat

semmiesem9 wrote:

moew_cat wrote:

semmiesem9 wrote:

Add this to your script:

foreversetxtoxsetytoyifxposition=xandyposition=ythenshowelsehide
ok but it does not move the ballon “away” from cat
Sorry, I don't really know what you're asking for. What do you mean moving the balloon “away” from the cat? Doesn't that already happen?
cant sign in imgur so no image

Last edited by moew_cat (Oct. 9, 2020 07:38:51)

moew_cat
Scratcher
51 posts

cant make ballon away from cat

deck26 wrote:

Point towards the player and move -5 steps?
dont work
SparshG
Scratcher
500+ posts

cant make ballon away from cat

Do you want the cat to not be able to walk on balloon? Can you describe the problem more?
moew_cat
Scratcher
51 posts

cant make ballon away from cat

SparshG wrote:

Do you want the cat to not be able to walk on balloon? Can you describe the problem more?
i dont want the cat to go inside the ballon
deck26
Scratcher
1000+ posts

cant make ballon away from cat

This would all go a lot quicker if you'd take the time to describe what you want.

Does the balloon stay still except when the cat comes near?

What do you mean my previous suggestion didn't work? Did you disable the other code that was telling the balloon to go to the position defined by the local x and y variables?

We want to help but you're making it hard for us to do so.

Why is the balloon so big?

If you just want the cat not to go inside the balloon you could just use the standard maze technique of undoing the cat's move when that happens.
TalentedProjectMaker
Scratcher
43 posts

cant make ballon away from cat

Do you want that when the cat walks up to the balloon, the balloon goes away from the cat?
moew_cat
Scratcher
51 posts

cant make ballon away from cat

TalentedProjectMaker wrote:

Do you want that when the cat walks up to the balloon, the balloon goes away from the cat?
yea
moew_cat
Scratcher
51 posts

cant make ballon away from cat

…. bump
Nezon
Scratcher
1000+ posts

cant make ballon away from cat

Try this.

You also need to explain your problems, or me and other helpers cannot help you, and we will be very confused!

whenclickedforeverifdistancetocat<10thenpointtowardscatmove-10stepselsepointindirection90

Last edited by Nezon (Nov. 26, 2020 19:11:33)

Powered by DjangoBB