Zenor Posted December 11, 2006 Report Share Posted December 11, 2006 Well, I am using damizean's mmf2-360 beta. But I see that uses scale - > angle. Then I am trying to change the directions for a type of eight directions. ai I needed to create another one activates. Ok, ok. But I see that have an error, therefore when it turns 45° degrees, it return will only be 0° again. Anybody can help me? screen shot: exemple of the error.bad screen shot,but it can be understood. Link to comment Share on other sites More sharing options...
RedEchidna Posted December 12, 2006 Report Share Posted December 12, 2006 What? Anyways, if it's, by chance, what I think it is, you just add 22.5 to the equation to find the angle. That's probably it. Link to comment Share on other sites More sharing options...
Zenor Posted December 12, 2006 Author Report Share Posted December 12, 2006 no,it isn't.here is a better screenshot: the code: on ground=1-----set direction("sonic") to angle("player")/10 Link to comment Share on other sites More sharing options...
Damizean Posted December 12, 2006 Report Share Posted December 12, 2006 If you want to use 8 directions, why not use Round(Angle("Player")/45)? Link to comment Share on other sites More sharing options...
Zenor Posted December 12, 2006 Author Report Share Posted December 12, 2006 If you want to use 8 directions, why not use Round(Angle("Player")/45)? becouse don' t work. screenshots with this code: Link to comment Share on other sites More sharing options...
Damizean Posted December 12, 2006 Report Share Posted December 12, 2006 becouse don' t work. screenshots with this code:[qimg]http://img110.imageshack.us/img110/3972/error1pe5.png[/qimg] [qimg]http://img110.imageshack.us/img110/4058/error2dx3.png[/qimg] Ah wait, sorry, I meant Round(Angle("Player")/45)*45 Link to comment Share on other sites More sharing options...
Zenor Posted December 13, 2006 Author Report Share Posted December 13, 2006 don't work eighter =/ k.soft did it.but i can't do it,all the codes i tried,but all don't do 8 directions like genesis games. Link to comment Share on other sites More sharing options...
MrKsoft Posted December 13, 2006 Report Share Posted December 13, 2006 Mine was based off the normal MMF1.5 version, with modifications to make it MMF2able. So it won't really work with the MMF2 360 beta. I did it in a somewhat cheap way, leaving the old Sonic sprite and changing the angle of the new Sonic sprite when the old one faced in whatever direction it's facing. ...I probably didn't explain that right, but it's a start to getting my idea across. 1 Link to comment Share on other sites More sharing options...
Damizean Posted December 13, 2006 Report Share Posted December 13, 2006 Gosh, Mr. Ksoft, don't tell me you made a new sprite instead of editing the one of the engine? Link to comment Share on other sites More sharing options...
MrKsoft Posted December 14, 2006 Report Share Posted December 14, 2006 I wanted to take advantage of MMF2's rotations, methinks, so I slapped another atop the original. IIRC, it was a lazy hack I'd planned to fix later but never did. X_X Kill me now. Link to comment Share on other sites More sharing options...
Damizean Posted December 14, 2006 Report Share Posted December 14, 2006 I wanted to take advantage of MMF2's rotations, methinks, so I slapped another atop the original. IIRC, it was a lazy hack I'd planned to fix later but never did. X_XKill me now. Using advantadge of MMF2 rotation is as easy as just changing two or three lines >: Link to comment Share on other sites More sharing options...
Recommended Posts