screen zooming

Started by foz, Tue 04/05/2004 19:09:38

Previous topic - Next topic

foz

doe`s anyone know if its possible to zoom a small section of screen....

for example to do a sniper scope...

as mouse cursor moves i would like to update the zoom as it moves.......

If there are any options for zooming let me know as i might be able to work something out...

If not ...Chris when will we have zooming screens.....


Ishmael

There's no documented way to zoom in, and no undocumented way that I'm aware of.

I think the best to do for sniper scope is to create a new room which has the zoomed in picture as background, and use, for example a GUI shaped like the scope, with the crosshairs and stuff as not-see trough, and move the scope around the zoomed view by using something like

if ((mouse.x < 160) || (mouse.x > 160)) {
Ã, Ã, character[EGO].x = mouse.x;
Ã, Ã, SetMousePosition(160, 120);
}

This scrolls the screen horizontaly when the mouse is moved, put in rep_ex. The numbers are for 320x240 res, so you need to change them if your game is difrent res.

Just some thoughts on how to do it...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SSH

#2
Check out http://www.adventuregamestudio.co.uk/yabb/index.php?topic=12744.0... but I've removed the demo from my server... it just did a full-screen zoom in on a big sprite.

If you use TK's suggestion, you could capture the screen by using the savegames with screenshot feature and reload it bigger than the original...

Or write a plugin...
12

foz

#3
..I am not clever enough to write a PLUG in.....

But if someone who is clever enough needs a challenge please feel free....

I would use it in every game i make.....

As it would have loads of uses..

What i`m after is`nt possible with AGS at moment i think........but will continue to try a work round the problem.

TK:some nice ideas but not a fix to what i want...I want to just zoom a small section with the rest staying as normal........as mouse is moved the new section will be zoomed and old area back to normal.


SMF spam blocked by CleanTalk