Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
so i wanna make a sniper gun which when right-clicked ,will show a zoomed in view of the area and a crosshair,and when you left-click it will shoot the bullet from the crosshair. I know how to do an action when a key clicked and also crosshair,can you tell me how to do the other stuff ,thanks |
||||
|
I had shared a .ccb file some time ago that shows how I did it. here is a new link. https://www.mediafire.com/file/i... hope it helps |
||||
|
thanks that helps! |
||||
|
of course, there are better ways to do it... for example, you really don't need 2 cameras - you can just use: ccbSetSceneNodeProperty(Camera1, "FieldOfView_degrees", 4); to zoom in for the scope, and then reset it to zoom back out. or use the post effects 'vignette' to make the scope view area - anyway, good luck on your project... |
||||
|
there is a script in the scripts list that will do exactly what you are looking for the script name is: Camera zoom by right mouse button i Hope this helps |
|