Has anyone heard of Osmos? I'm trying to make Osmos style moving (as an experiment), but point towards mouse pointed * -1 doesn't really work. Anyone know how to make it point in the true opposite direction?
Edit: Uploaded it as a project so you can see what I mean by 'not working'. Here's the link:
http://scratch.mit.edu/projects/Sunrise-Moon/1232444
Last edited by Sunrise-Moon (2010-08-06 11:57:02)
Offline
Blade-Edge wrote:
How does it not really work?
It points in the opposite direction, but not on the y axis I think. Here, I just uploaded it so you can see what I mean:
http://scratch.mit.edu/projects/Sunrise-Moon/1232444
I'm sure it's working the way it should, but it's not what I'm trying to do.
Last edited by Sunrise-Moon (2010-08-06 11:57:41)
Offline
You could try this:
[blocks] <point in direction( (( <direction> <-> 180 ))[/blocks]
Does that work?
Offline
Wolfie1996 wrote:
You could try this:
[blocks] <point in direction( (( <direction> <-> 180 ))[/blocks]
Does that work?
That works perfectly! Thank you!
Offline
Or you could use [turn (180) degrees].
Offline
Jonathanpb wrote:
Or you could use [turn (180) degrees].
![]()
Wouldn't that just make it spin uncontrollably?
Offline
Blade-Edge wrote:
Jonathanpb wrote:
Or you could use [turn (180) degrees].
![]()
Wouldn't that just make it spin uncontrollably?
It flips the sprite. Of course, just like the other method, continuously doing that would make the sprite flip uncontrollably.
Offline
Just have it point towards whatever it is and move -1 steps. Or you could have a seperate sprite that points towards whatever it is and then your sprite goes in that direction - 180.
Offline