Are these extensions coming? I use them often to determine the angles or directions between 2 positions, and in the case of direction calculator, to rotate slowly toward a point.
If they are coming, does anyone know when?
Printable View
Are these extensions coming? I use them often to determine the angles or directions between 2 positions, and in the case of direction calculator, to rotate slowly toward a point.
If they are coming, does anyone know when?
Are these extensions coming? I use them often to determine the angles or directions between 2 positions, and in the case of direction calculator, to rotate slowly toward a point.
If they are coming, does anyone know when?
Advanced Direction was released with the bonbuspack, it has both features!
Advanced Direction was released with the bonbuspack, it has both features!
Can someone make an example of these features being shown? I would be very grateful.
All i actually need it to be shown how to make an active object rotate slowly to an angle... That is all, no more otherwise i'll get confused...
Thanks,
-Alex
Can someone make an example of these features being shown? I would be very grateful.
All i actually need it to be shown how to make an active object rotate slowly to an angle... That is all, no more otherwise i'll get confused...
Thanks,
-Alex
You don't really need an example. The function on the adv direction object is Rotate(<current direction>, <target direction>, <rotation speed>)
It doesn't get much simpler than that <img src="/center/images/graemlins/smile.gif" alt="" />
You don't really need an example. The function on the adv direction object is Rotate(<current direction>, <target direction>, <rotation speed>)
It doesn't get much simpler than that <img src="/center/images/graemlins/smile.gif" alt="" />
<<That is all, no more otherwise i'll get confused...>>
I understand what you mean. Most examples (not only for this extension) needs a better basic instruction with some very simple examples to step in the plugin. The include examples are in many cases too complex to understand them with easy. Small step by step tuts would be nice.
Peter
<<That is all, no more otherwise i'll get confused...>>
I understand what you mean. Most examples (not only for this extension) needs a better basic instruction with some very simple examples to step in the plugin. The include examples are in many cases too complex to understand them with easy. Small step by step tuts would be nice.
Peter
Yeah i agree peter. and Stuckboy thanks for that! In the extension it doesn't make that clear :P
Yeah i agree peter. and Stuckboy thanks for that! In the extension it doesn't make that clear :P
It doesn't get much simpler than that
The direction calculator is much simpler than that for sure. To get the advanced direction working with a lot of object involves quite some work. I'm glad Yves is working on the conversion of the direction calculator for MMF2. I do find the DC much easier and quicker to use.
It doesn't get much simpler than that
The direction calculator is much simpler than that for sure. To get the advanced direction working with a lot of object involves quite some work. I'm glad Yves is working on the conversion of the direction calculator for MMF2. I do find the DC much easier and quicker to use.
Ok I've just recieved the full version of MMF2 <img src="/center/images/graemlins/laugh.gif" alt="" /> I've got this Advanced direction object...so how do I use it to rotate an object slowly towards another object?
So far I've managed to get objects to slowly rotate to a specific direction...but not to another object! Can someone help me out please?
Ok I've just recieved the full version of MMF2 <img src="/center/images/graemlins/laugh.gif" alt="" /> I've got this Advanced direction object...so how do I use it to rotate an object slowly towards another object?
So far I've managed to get objects to slowly rotate to a specific direction...but not to another object! Can someone help me out please?
Its well easy :P. Just do set angle to -- Then goto the advanced direction and do what stuckboy said.
Easy as pieeee
Its well easy :P. Just do set angle to -- Then goto the advanced direction and do what stuckboy said.
Easy as pieeee
Ok but what do you put in the 'target direction' bit? 'Cause there's only room for one value there, so you can't put the x and y of an object in. : /
Ok but what do you put in the 'target direction' bit? 'Cause there's only room for one value there, so you can't put the x and y of an object in. : /
Try
Angle <> LongDir( "Advanced Direction Object", X( "Active" ), Y( "Active" ), XMouse, YMouse )
-> set angle to Rotate( "Advanced Direction Object", Angle of active, LongDir( "Advanced Direction Object", X( "Active" ), Y( "Active" ), XMouse, YMouse ), 3 )
Then just replace the Xmouse and Ymouse with the position you want it to rotate to.
Try
Angle <> LongDir( "Advanced Direction Object", X( "Active" ), Y( "Active" ), XMouse, YMouse )
-> set angle to Rotate( "Advanced Direction Object", Angle of active, LongDir( "Advanced Direction Object", X( "Active" ), Y( "Active" ), XMouse, YMouse ), 3 )
Then just replace the Xmouse and Ymouse with the position you want it to rotate to.
I don't understand that at all. Why are there 2 lines stuff and where do I put that in? Is it really that complicated?
I don't understand that at all. Why are there 2 lines stuff and where do I put that in? Is it really that complicated?
One of the lines are for the event, the other one is for the action. To make the event, go to "compare two general values" then enter
Angle( "Active" )
different
LongDir( "Advanced Direction Object", X( "Active" ), Y( "Active" ), XMouse, YMouse )
This condition compares the current angle of the active to the angle between the active, and the mouse. If they are different, then it means that the active isn't facing the correct angle, and it needs to be rotated. The action looks like this:
set angle to Rotate( "Advanced Direction Object", Angle( "Active" ), LongDir( "Advanced Direction Object", X( "Active" ), Y( "Active" ), XMouse, YMouse ), 3 )
The first part, Angle( "Active" ) gets the current angle. The second part, LongDir( "Advanced Direction Object", X( "Active" ), Y( "Active" ), XMouse, YMouse ) Gets the angle between the active and the mouse, and it's this angle the active is rotated to.
The last part is just the speed of how fast it should be rotated.
It's not really complicated, just a bit long.
One of the lines are for the event, the other one is for the action. To make the event, go to "compare two general values" then enter
Angle( "Active" )
different
LongDir( "Advanced Direction Object", X( "Active" ), Y( "Active" ), XMouse, YMouse )
This condition compares the current angle of the active to the angle between the active, and the mouse. If they are different, then it means that the active isn't facing the correct angle, and it needs to be rotated. The action looks like this:
set angle to Rotate( "Advanced Direction Object", Angle( "Active" ), LongDir( "Advanced Direction Object", X( "Active" ), Y( "Active" ), XMouse, YMouse ), 3 )
The first part, Angle( "Active" ) gets the current angle. The second part, LongDir( "Advanced Direction Object", X( "Active" ), Y( "Active" ), XMouse, YMouse ) Gets the angle between the active and the mouse, and it's this angle the active is rotated to.
The last part is just the speed of how fast it should be rotated.
It's not really complicated, just a bit long.
Ah ok but I don't want to use angles I just want to use the 32 directions, and it doesn't seem to work with that :/
Ah ok but I don't want to use angles I just want to use the 32 directions, and it doesn't seem to work with that :/
Under the Advanced directions setup box, just set the number of directions to 32, and replace all Angle( "Active" ) with Dir( "Active" ))
Under the Advanced directions setup box, just set the number of directions to 32, and replace all Angle( "Active" ) with Dir( "Active" ))
It works!!!!! AT LAST!!!!! Thanks a lot Destroyer!
It works!!!!! AT LAST!!!!! Thanks a lot Destroyer!