Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / 2D Position Camera?

Author
Message
Xlaydos
21
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 30th Dec 2005 20:10
What is the command for position camera in 2d?. E.g to center the screen onto a point. Would i just have to move all other sprites in the opposite direction?

Thanks
Xlaydos
21
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 30th Dec 2005 20:39
Ah, i was looking through the commands and found this



Is that what i should use to move all the other sprites?
andre
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location:
Posted: 30th Dec 2005 23:19 Edited at: 30th Dec 2005 23:20
[quote]



it looks like it.

DARK_VIRUS
Trisoft
-------------------------------------------------------------------if you worry you die and if you dont worry you die. f#%k worry
Zergei
20
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 31st Dec 2005 00:43
No, if you wish to move a sprite just recall it with the sprite command, and establish it's new coordinates...



i'd avoid using the offset command, sometimes it ends up bugging some collision systems. Another way around would be to make the 2d game using planes so that you can control the 3d camera without modifying the "sprites"(planes now) coordintes, and you could make some cool efects using planes. If not, you have to establish some kind of screen position (no , not the command), and add that value to the sprites position, so that if you move the camera, actually what will be moving are the sprites, and give that effect.
Xlaydos
21
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 1st Jan 2006 18:15
Okay thanks guys

Login to post a reply

Server time is: 2025-05-16 14:02:42
Your offset time is: 2025-05-16 14:02:42