Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: jamesreg on Tue 29/09/2009 03:09:13

Title: scrolling the screen for a shooting scene
Post by: jamesreg on Tue 29/09/2009 03:09:13
One of the upcoming scenes I want to do will involve wanting to have a crosshair style mouse cursor which will scroll the screen quite a ways left and right and up and down slightly to find a location that you will have to shoot at.

Now my questions are

is this possible with ags?

What is involved with making it so the mouse cursor will move the scroll the screen in the direction it is moving?

Can this be done with fast enough speed for what Im wanting to do?

What is the max size of a scrolling screen in ags?

And is it possible to display coordinates of some kind on the screen that you would have to find and fire at?

Title: Re: scrolling the screen for a shooting scene
Post by: Khris on Tue 29/09/2009 03:22:41
All of this is possible.
You'll need mouse.x and mouse.y and you'll need to look up the SetViewport command.
You'll also need to understand the difference between screen and room coordinates.

To display coords on-screen there are several methods available; you could use a GUI with a label, or an overlay.

Try to figure this out by yourself, it's not that hard.