Message Board


Message Board > Fenix / Bennu / Gemix / DIV > Make a small area zoom in

January 10, 2007, 20:20
yonni
None
420 posts
Is there any way in fenix to make a small portion of the screen zoom in on a specific point. Basically I want my crosshair to have a zoom effect when you're using a sniper (2D, side scrolling shooter) and to have a small area (preferably circular, but square would do) to zoom in on the position of the mouse. Any ideas? 'cause I'm just not quite sure how to go about it.
____________
#
January 10, 2007, 20:48
Sandman
F3n!x0r
1194 posts

If you want to zoom in on a map, you can xput() that map on a new little map. Make a process with that map as the graph and place it in the center of the screen. Using xput() you can resize the graph, keeping the reticule the same size.

Doing this for the whole Fenix window is possible too, but might prove to be more difficult, as you write on the same screen. So before reading, you should wipe out the reticule so you can catch what's beneath (you can get the screen's current graph by callng get_screen()).

You can make it circular in many ways. One way is to make the pixels of the graph of the reticule outside the circle transparent, by setting them to color 0.
____________
BennuWiki
Yes, my avatar has grey borders in IE (so get a decent browser)
ROOFLEZ ROOFLEZ
#
January 12, 2007, 16:39
Dennis
どこかにいる
2092 posts

well it gets complicated, depends on what you use for scrolling! If you made your own scroll process you can edit this process to get your favourite results. i do not think it is possible when you use standerd scroll functions.

You could make sure that when you zoom in with a sniper you cannot move anymore (no scroll) copy the scroll screen as Sandman stated to a new map. You will need an algorithm for the resizing because it resizes on its center point and thus the guy you zoom into and the background will not resize as a whole... if you get my point.
____________
Kwakkel
#

Message Board > Fenix / Bennu / Gemix / DIV > Make a small area zoom in

Quick reply


You must log in or register to post.
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!