Sniper GUI Question

Cześć zastanawiam się jak zrobić gui texture by wyświetlało się jako celownik snajperki. Dzięki

Please speak English, even if it is just a rough google translation. This is a primarily English-speaking forum.

Translation: Hi I wonder how to make a gui texture as shown a sniper sight.

If you can’t speak English then please use a translator when posting questions here.

Hi, your question is not clear (at least to me).
Are you asking how to create the texture itself for the sniper sight? Or are you looking for how you can create the mechanics around this? (so not the texture itself)

If you want to make the textures, i’d advise to try the free Gnu Image Manipulation Program (GIMP) and save the images as targa files with transparency.

if it’s going about the mechanics behind this, it will mainly depend on how you want this scope to act and appear.
In example, Like in a first-person-shooter’s normal way (Like Counter-Strike, image: http://2.bp.blogspot.com/_jAKdlVfsBY0/TBmLvaxhBWI/AAAAAAAAAL8/AjOziCu3KPg/s1600/pick+3.jpg ) you can basically just set the scope image to be drawn on top of your crosshair.
Or in example as seen in some mobile sniper games, it’s a floating zoomed-in view through the scope, drawn on top of the smaller overview of your level, on the right spot (Example: Zombie Sniper for Android, image: https://lh4.googleusercontent.com/-KYwb6BUfuUw/UCtSygvmN_I/AAAAAAAAWrM/kYOs6PT7kts/s512/Ghost%2520Sniper-Zombie-4-prohp.net.jpg )

And there’s a ton more different ways.
A much more difficult method, like used in games such as Call-of-Duty and BattleField is one that ends up looking much like this:
http://www.crydev.net/uploads/mediapool/Scope/scope_04.jpg
However, that scope is based on a whole model, not just a texture and script.

The easiest way i can think up to implement a sniper scope would be to make a simple sniper scope texture (Make this texture square, holding only the scope itself!) with transparency and full black borders. Then think of a way to make a script that will draw that as a GuiImage on top of your camera’s view (and if you manage, add black borders to the remaining edges).

Hopefully you can read my english just fine :slight_smile: