over 100 downloads!!!
An FPS camera capable of being set up with two lines of code. its oriented with the Z direction up. it's designed to work with standard inputs of move forward, back, left, and right. it can also rotate and look up and down and zoom. it is also programed to completely set up 3D all on its own, all you have to do is put this code
into the create event. note: if you are using this with other objects in the room, this object must be made last (or put in the room last) or none of the objects will move relative to the camera (a.k.a. it will not move but everything created before camera this object will). another item of note is that due to the orientation of the camera it is still possible to use the drag and drop function. to this effect in order to do effective testing, I have included a test object that will make sure to make checking for bugs more effective. the code to actually run the camera is listed below and must be placed in the draw event in addition to the code above being place in the create event.
the code above links movement to the arrow keys, links "looking around" to the a,s,d, and w keys, and lastly it links zoom to the left shift key. so to explan
argument0 handles back and forth argument1 handles left and right argument2 handles look left and right argument3 handles look up and down argument4 handles zoom
I hope this code gets you the effects you want, remember this object must be created last in the room in order to work properly. thank you and please be sure to contact me if you have any issues and rate the program. I would also like to know if you make a game using this, I would much like to play it. https://roguedogx.itch.io/dig
in this verison of IceyFPSCamera adds a function that can change the cameras location after the game has been started there is a demo but here is how it works
GamePadeMover(-new x location-,-new y location-, -new z location-, -direction to look in the XY plane in radon-, -angle of the head tilt in radon in ZY plane-)
Version 1.0.4. Published May 13, 2015
Created with GameMaker: Studio v1.4.1567
This asset hasn't received enough reviews yet.
You can only review assets you've bought.
No reviews have been left for this asset - be the first!