Discuss Scratch

Safwan201205
Scratcher
5 posts

HOW TO MAKE YOUR SPRITE FLOAT

HI, i have a question that is in need of answering. I’m trying to make a sprite float but i am really unfamiliar with scratch and I’m really new to this type of things. PLEASE HELP ME!
102acrimea
Scratcher
100+ posts

HOW TO MAKE YOUR SPRITE FLOAT

Please elaborate on what you intend with the term “float”.
Safwan201205
Scratcher
5 posts

HOW TO MAKE YOUR SPRITE FLOAT

I want the sprite to fly around like using a jet pack to do it
VA-15
Scratcher
9 posts

HOW TO MAKE YOUR SPRITE FLOAT

Сафван201205 wrote:

I want the sprite to fly around like using a jet pack to do it
what?
Safwan201205
Scratcher
5 posts

HOW TO MAKE YOUR SPRITE FLOAT

I want the sprite to fly around with a jet pack.
102acrimea
Scratcher
100+ posts

HOW TO MAKE YOUR SPRITE FLOAT

Do you already have basic physics? If so, you can change the y-vel of the sprite when jetpack is on.
Safwan201205
Scratcher
5 posts

HOW TO MAKE YOUR SPRITE FLOAT

Im not sure what you mean. I just joined
102acrimea
Scratcher
100+ posts

HOW TO MAKE YOUR SPRITE FLOAT

To make a simple flying simulator, you can do the following.
when green flag clicked
forever
if <key [space v] pressed?> then


change y by (4)

else
change y by (-6)
end
end
That is the basic float engine with no momentum. If you want sideways movement, you can do this.
when green flag clicked
forever
change x by ((<key [right arrow v] pressed?> - (<key [leftarrow v] pressed?>)) * (4))
end

Last edited by 102acrimea (April 10, 2025 06:47:24)

Safwan201205
Scratcher
5 posts

HOW TO MAKE YOUR SPRITE FLOAT

Thx

Powered by DjangoBB