Discuss Scratch

1990skid56
Scratcher
72 posts

Make sprite glide to a random position when hovered

I am trying to make an impossible clicking game that when u hover over the button, it goes away

I don't know how to use these block formats
mousedown?

i need a bit of help coding here
Loganmcc04
Scratcher
100+ posts

Make sprite glide to a random position when hovered

1990skid56 wrote:

I am trying to make an impossible clicking game that when u hover over the button, it goes away

I don't know how to use these block formats
mousedown?

i need a bit of help coding here

whenclickedforeveriftouchingmouse-pointer?thenglide2secstorandom position

yeah
huboojoe
Scratcher
100+ posts

Make sprite glide to a random position when hovered

1990skid56 wrote:

I am trying to make an impossible clicking game that when u hover over the button, it goes away

I don't know how to use these block formats
mousedown?

i need a bit of help coding here
this block detects if the mouse button is pressed
Whitepatchwastaken
Scratcher
100+ posts

Make sprite glide to a random position when hovered

1990skid56 wrote:

I am trying to make an impossible clicking game that when u hover over the button, it goes away

I don't know how to use these block formats
mousedown?

i need a bit of help coding here
Two things here:
1. That block detects if the mouse cursor is down.
2. You can use the
touchingmouse-pointer?
block to detect if the sprite's being hovered. In your case it's work like this:
whenclickedforever/repeatuntilcondition,ifrepeatuntilIfyouhaveextracode,putitBEFOREtheglide(replacingthis)orit'llbeunusable.iftouchingmouse-pointer?thenglide1secstorandom position
Hope this helps!

Powered by DjangoBB