Bout to shoot myself

Blitz3D Forums/Blitz3D Programming/Bout to shoot myself

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.

STEP OFF THE LEDGE NOW! ;)

If your coordinates are way off-screen, blitz resets them to 0,0. A line from 100,100 to -240, 4096 would do that for example. So always check that: IF X >= 0 and X <= graphicsWidth() AND Y >= 0 and Y <= graphicsheight() THEN draw your line... Check both start & end points of course.

You're trying to label an entity on screen, turning the camera would push the entity offscreen and create 2d coordinates of some massive number or 'Nan' (not a number).
Think what the 2d coordinates would be relative to the camera of an object BEHIND IT! :)))

Danny