Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What object is this cross in a circle?
#4
tar2.position is of type point, which has 3 floats. You need to save it to a variable and calculate position:

Code:
point pos = tar2.position;
pos.x += something;
pos.y += something;

You might want to use object's orientation (angle) to calculate position using cos() and sin().

Side note: goto() is kinda like cheating. It's too easy. Try doing the same using motor() and jet(). I think this could be a good idea for a programming challenge. A speed run or something.
"After three days without programming, life becomes meaningless."
~The Tao of Programming


Messages In This Thread
RE: What object is this cross in a circle? - by tomaszkax86 - 03-18-2016, 12:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)