Fangames > Game Design
How do you add God mode into your fangame? (For testing purposes)
(1/1)
Jovancece:
I was wondering on how to add God mode into my fangames so i can test some stuff.
PiranhaTooth:
You'd want to create a global variable called global.godMode or something and on keyboard_check_pressed(whatever key you want godmode toggle to be) toggle it from false to true, or true to false. Then you want to go to where the player collides with objPlayerKiller and encase that code in an if-statement checking if global.godMode == false. That's the quickest and easiest way to do it.
Navigation
[0] Message Index
Go to full version