Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Help with moving objects
- Biit_Gamer
- Scratcher
14 posts
Help with moving objects
I'm making a scrolling top-down game and you shoot bullets in it, but I can't figure out how to get the bullets to work with the scrolling while also moving.
when I receive [Comment Posted]
say [Signature!!!!]
Signature!!!!
- benk_b4b
- Scratcher
100+ posts
Help with moving objects
Use the same script as the background for moving, but offset it by wherever it is.
Basically, the bullet position should be your scrollX and scrollY, so like this:
Basically, the bullet position should be your scrollX and scrollY, so like this:
forever
go to x: ((posX)-(scrollX)) y: ((posY)-(scrollY))
change [posY v] by (5)
end
I've coded for almost 7 years, decently advanced, though I don't use scratch much anymore.
when I receive [Question v]
Try to solve(question)::custom
say (answer)
- Discussion Forums
- » Help with Scripts
- » Help with moving objects