<point towards( OtherSprint)
<move( 10 )steps>
You can see an example in my Pirates vs Ninja game.
Offline
Digimath wrote:
<point towards( OtherSprint)
<move( 10 )steps>
You can see an example in my Pirates vs Ninja game.
Well, I mean more of moving towards it without changing the direction.
Offline
Can't you can the type of way the direction symbol is. one of them is full rotate(top), Side Rotate(middle),and no rotate(bottom).It's right left of the sprite data when the sprite is selected.Switch to no rotate, then use digimath's code.
Offline
laser100 wrote:
Can't you can the type of way the direction symbol is. one of them is full rotate(top), Side Rotate(middle),and no rotate(bottom).It's right left of the sprite data when the sprite is selected.Switch to no rotate, then use digimath's code.
Yes, this is one idea. When you select the sprite, at the top where it says the sprite's name and it show's a small icon of the sprite with a line from the center of the sprite outwards, to the left of it, there are three buttons. Normally the sprite is the top one, with the clockwise symbol - so it can turn freely. But if you change it to the bottom button, than it won't won't appear to change direction, but if you for example, change the direction, and make it move some steps, than it will move in it's hidden direction.
One other option if you don't want to do that though, is to record the sprite's direction in a variable, point towards the other sprite, move towards it, and then change to the sprite's original direction.
If this is confusing, just tell me so I can make a project to demonstrate
Offline
Lucario621 wrote:
laser100 wrote:
Can't you can the type of way the direction symbol is. one of them is full rotate(top), Side Rotate(middle),and no rotate(bottom).It's right left of the sprite data when the sprite is selected.Switch to no rotate, then use digimath's code.
Yes, this is one idea. When you select the sprite, at the top where it says the sprite's name and it show's a small icon of the sprite with a line from the center of the sprite outwards, to the left of it, there are three buttons. Normally the sprite is the top one, with the clockwise symbol - so it can turn freely. But if you change it to the bottom button, than it won't won't appear to change direction, but if you for example, change the direction, and make it move some steps, than it will move in it's hidden direction.
One other option if you don't want to do that though, is to record the sprite's direction in a variable, point towards the other sprite, move towards it, and then change to the sprite's original direction.
If this is confusing, just tell me so I can make a project to demonstrate![]()
I see. Maybe I'll try that. Thanks
Offline