Camera movement
BlitzMax Forums/BlitzMax Beginners Area/Camera movement
| ||
Is there a way to translate the "camera" in a scene? or should I try the other way and instead of moving the camera I should move every image rendered (move the object vs move the camera). Thanks |
| ||
SetOrigin(x, y) |
| ||
Gfk: Thank you. I missunderstood what the docs said about SetOrigin |
| ||
I also use SetOrigin for my tile-based game but I wonder: Has anybody measured the speed advantage of using it? Obviously, one can save a lot of offset additions when doing smooth scrolling etc. as the origin variables are added automatically. I ask because I'm not sure if any platform supported by BlitzMax is still around when my game gets finished (I'm right at the beginning)... ;-) For this reason or another it *could* be necessary to abandon BM and use another Basic dialect or a similar language that might not support SetOrigin at all. |
| ||
Blitz3D is still around, and has just received an update to fix a problem with Windows 8. So I can't see Blitzmax disappearing into oblivion any time soon. |
| ||
I mean five years or so from now... ;-) |
| ||
The new dialect "Monkey" continues this SetOrigin(): there is a corresponding function "Translate()". In combination with "PushMatrix()" is became just more powerful than SetOrigin() ever was... So the technique will be continued. And Monkey works on all future platforms. |
| ||
Thanks for your reply! |