SetHandle and SetOrigin

BlitzMax Forums/BlitzMax Programming/SetHandle and SetOrigin

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I had a play after we spoke on IRC today. SetOrigin moves the screen origin (from 0,0) to wherever you want. SetHandle moves the drawing handle, which is in screen coordinate space I think.

I don't think these commands are the solution to your problem, or indeed creating the new problem. I think the problem lies with SetRotation. You should drop the SetRotation command, and roll your own rotations.

This gives a clearer idea of why its a problem to use SetRotation:
Strict
Local ang# = 0
Graphics 640,480,0
While Not KeyDown(KEY_ESCAPE)
	ang:+1
	SetRotation ang
	DrawLine 0,0,300,0
	Flip
	Cls
Wend
End