Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,758 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
How can i make a snipper lens #264744
05/07/09 21:35
05/07/09 21:35
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
How can i make a snipper lens with Lite-C
In the game Delta Force, the player, pulsing right clik , activate a snipper lens. In the round area of the snipper lens the view is zoomed.

My english skills are very limited.
Thanks


Amigo, mi nombre es Erick Castro, escribo desde Costa Rica.

Re: How can i make a snipper lens [Re: Erick_Castro] #264752
05/07/09 22:39
05/07/09 22:39
Joined: Jan 2008
Posts: 1,580
Blade280891 Offline
Serious User
Blade280891  Offline
Serious User

Joined: Jan 2008
Posts: 1,580
You need to make the lens as a panel and then just zoom in the camera, im pretty sure it says in one of the workshops somewhere how to do teh camera zoom, it would just be

camera.z += 5;

or similar


My Avatar Randomness V2

"Someone get me to the doctor, and someone call the nurse
And someone buy me roses, and someone burned the church"
Re: How can i make a snipper lens [Re: Blade280891] #264753
05/07/09 22:46
05/07/09 22:46
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
camera.arc does the trick.


no science involved
Re: How can i make a snipper lens [Re: fogman] #264759
05/08/09 00:16
05/08/09 00:16
Joined: Apr 2009
Posts: 298
Southern Oceans
KiwiBoy Offline
Member
KiwiBoy  Offline
Member

Joined: Apr 2009
Posts: 298
Southern Oceans
Hi Eric, go thru the AUM series, later ones (from 40 onwards I think) and you will find a few good examples of making sniper scope and implementing.
Sorry cant be any more specific, forgot which one it is and it does take a lot to search for someone else....good luck.


Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage
Re: How can i make a snipper lens [Re: KiwiBoy] #265540
05/13/09 02:53
05/13/09 02:53
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
thankyou blade, fogman and kiwiboy for your answers.

Re: How can i make a snipper lens [Re: Erick_Castro] #265545
05/13/09 04:42
05/13/09 04:42
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline
User
delinkx  Offline
User

Joined: Jul 2008
Posts: 553
Singapore
taken directly from the manual:

Quote:

function sniper()
{
while(1)
{
if(mouse_right) // right mouse button pressed
{
camera.arc = max(camera.arc - time_step, 30); // reduce fiel of view
}
else
{
camera.arc = min(camera.arc + time_step, 90); // increase fiel of view
}
wait(1);
}
}




A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: How can i make a snipper lens [Re: delinkx] #265651
05/13/09 14:14
05/13/09 14:14
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
Dlinkx.
Thanks. its true, from the code is in the manual. But the code affects all the rectangular area of the screen. I think a code that affects only circular area . In the Delta Force game the sniper is circular, not rectangular.

thanks

Re: How can i make a snipper lens [Re: Erick_Castro] #265658
05/13/09 14:37
05/13/09 14:37
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
you need to use an image to get the circular effect, am sure delta force does this too wink

Re: How can i make a snipper lens [Re: darkinferno] #265669
05/13/09 15:50
05/13/09 15:50
Joined: Oct 2007
Posts: 116
S
sydan Offline
Member
sydan  Offline
Member
S

Joined: Oct 2007
Posts: 116
Your english is very good.


For some reason, my ambition always seems to beat my ability.
Re: How can i make a snipper lens [Re: sydan] #265830
05/14/09 13:52
05/14/09 13:52
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Erick_Castro
or you can make another one image with alpha channel, that would cut edges wink


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1