Jump to content

Photo

WalkTo() ?


  • Please log in to reply
2 replies to this topic

#1 lucas92

lucas92

    Defender

  • Members

Posted 30 December 2008 - 07:09 PM

Alright, what I need is a WalkTo(int x1,int x2,int y1, int y2, int speed) void that would move something to x1 to x2 and to y1 to y2... I don't have any idea of how to do it, and I need it so much... I don't know much about trigonometry and such thing, so that's why I would need that one script... Help? icon_sorry.gif

And no loop... It's for use for scripts and such things.

EDIT-Also, speed is how much to move the thing in pixels each time the void is executed.

Edited by lucas92, 30 December 2008 - 07:20 PM.


#2 Aslion

Aslion

    End Fascism

  • Members
  • Real Name:Ryan
  • Location:Plug One's spectacles

Posted 30 December 2008 - 07:42 PM

Can't you just use FFCs?

#3 lucas92

lucas92

    Defender

  • Members

Posted 30 December 2008 - 07:48 PM

Yes, but making the ffc move in a certain direction/angle and speed is what the difficult part about it.

Sure there is Vx and Vy, but there are a lot of other directions to cover...

EDIT-I've got the solution at AG. icon_smile.gif

Edited by lucas92, 30 December 2008 - 08:42 PM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users