Mar 25, 2024 12:38:05
How do you make it so that a sprite is always on the right/left of another sprite while pointing towards the mouse pointer?
view on scratch
view on legacy ocular
MineTurte
loading
YepHow so? Also guns will break the scratch tos i think
Aren’t there many projects with weaponry?
Also, smooth movement:when green flag clicked
set [xvel v] to (0)
set [yvel v] to (0)
forever
set [xvel v] to (((xvel)+(<key (d v) pressed?>-<key (a v) pressed?>))*(0.7))
set [yvel v] to (((yvel)+(<key (w v) pressed?>-<key (s v) pressed?>))*(0.7))
change x by (xvel)
change y by (yvel)
end
Just saying, the player always points towards the mouse pointer, and to make the gun point towards the mouse pointer I just have to add the point towards block, am I correct?