A few dumb but helpful questions...
gamesfua
Member Posts: 723
Hey everybody. Got a few quick and potentially dumb questions to ask. Any help would be super appreciated. Thanks in advance!
1.) I've got a bullet that fires from a gun. When the bullet is released the camera follows the bullet. When the bullet hits a wall the camera moves back to the gun (all by using dummy actors with camera controls). So far everything has been working fine. However, I'd like to add some kind of protection that if anything goes wrong, that the camera will still return to the gun. Any suggestions? Basically looking for some kind of other safety net rule that will ensure we get back to the gun. If that camera doesn't return to the gun the game will be useless.
2.) I've added a joystick calibration section in my settings. The user will be able to set their joystick just the way they want it. Upon leaving this settings page, the computer saves those settings. Here's my question. I have a LOAD attribute upon starting the game that looks to that joystick setting and its SAVE value. If the player never sets their joystick calibration, will the computer upon start up load a ZERO value or will it go to the DEFAULT value I've assigned the attribute? Simply put, does a LOAD attribute with nothing SAVED revert to a zero, or does it go to the default numerical value placed in the attribute?
3.) I have a graphic that is assigned to a boolean. It's an ON/OFF SWITCH. What I want, is if the player taps the button, it will toggle between ON and OFF. How do you do that with a boolean? The logic I used didn't work. What I said was...
-If tap button and boolean is FALSE, then turn TRUE.
-If tap button and boolean is TRUE, then turn FALSE.
Any ideas would be greatly helpful!
Thanks so much everyone.
1.) I've got a bullet that fires from a gun. When the bullet is released the camera follows the bullet. When the bullet hits a wall the camera moves back to the gun (all by using dummy actors with camera controls). So far everything has been working fine. However, I'd like to add some kind of protection that if anything goes wrong, that the camera will still return to the gun. Any suggestions? Basically looking for some kind of other safety net rule that will ensure we get back to the gun. If that camera doesn't return to the gun the game will be useless.
2.) I've added a joystick calibration section in my settings. The user will be able to set their joystick just the way they want it. Upon leaving this settings page, the computer saves those settings. Here's my question. I have a LOAD attribute upon starting the game that looks to that joystick setting and its SAVE value. If the player never sets their joystick calibration, will the computer upon start up load a ZERO value or will it go to the DEFAULT value I've assigned the attribute? Simply put, does a LOAD attribute with nothing SAVED revert to a zero, or does it go to the default numerical value placed in the attribute?
3.) I have a graphic that is assigned to a boolean. It's an ON/OFF SWITCH. What I want, is if the player taps the button, it will toggle between ON and OFF. How do you do that with a boolean? The logic I used didn't work. What I said was...
-If tap button and boolean is FALSE, then turn TRUE.
-If tap button and boolean is TRUE, then turn FALSE.
Any ideas would be greatly helpful!
Thanks so much everyone.
Comments
2) I just tested it and it seems to go to the default value you've assigned for the attribute.
3) This is how I would do it: