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.

Newcomers DBPro Corner / Centering Sprite?

Author
Message
Carsen
17
Years of Service
User Offline
Joined: 10th Feb 2007
Location: Idaho
Posted: 11th Apr 2008 05:03
Hey guys,

I am having some trouble with a image I am using with the Paste Sprite command -



I need it to align in the center of the screen on the X axis, but I made my game so that the resolution is detected and changes accordingly to their resolution I need my image to align in the center according to the resolution instead of just putting 300, 150 and having it off on certain resolutions. If someone could tell me some code or such on how to center a Paste Sprite image that would be great!

Regards,
Carsen


BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 11th Apr 2008 05:10



Los Mineros are on leave...
Carsen
17
Years of Service
User Offline
Joined: 10th Feb 2007
Location: Idaho
Posted: 11th Apr 2008 05:52
Thanks bmaczero. That worked with a little tweaking! Much appreciated. Mods may close this thread now.


BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 11th Apr 2008 23:50
Ah, yes, it should


Los Mineros are on leave...

Login to post a reply

Server time is: 2024-09-27 14:22:22
Your offset time is: 2024-09-27 14:22:22