dalekman9999's Recent Forum Activity

  • You could use another global variable to register if the door is open.

    THanks man, im a big time idiot, i should've realized that from the beginning, Thanks for the help man

  • A global variable is global, so it is persistent.

    The actions you perform on the variable are inside event sheets.

    If the "draining" action is not in the event sheet of the new layout it will not be performed.

    So I gues it would just be a case of adding the event and action to the new layout.

    But its a door that is activated on layer 1, So how would i make that activation register on the second layer aswelll so the draining continues?

  • I am trying to make it so when I activate something on layout 1, it drains from a global variable, and when i switch to another layout the draining still continues from that variable, but when i deactivate the object, the variable stops draining.

  • Ok im making fnaf in construct 2 to see how good i can get it, now, what i want is for the game to detect when the doors are down (already done) but when i switch to the camera it doesnt register that the doors still, how would i make it do this?

  • So, I want to have the layout 1 persistant, so that everything continues on it when I am on another layout, If anyone could help that would be great

  • Use the condition "Is boolean instance variable set" from the object.

    Thanks so much, i actually knew it was that but i was accessing it from the wrong area, i was doing a stupid mistake x3

  • As the title says, if anyone could help that would be great x3

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • ------------

    How would I implement this? As I have a global number variable thats set to 200 for power

    I want anything used to drain it slowly.

  • Im now trying to make on every tick make the game check how many of the devices are ON, and based on that obtain the energy used in that tick. The more devices ON, the more energy wasted. As said by someone giving me advice, I have created the In use boolean on the devices that will use power, but i cant find a way to make it work. I cant get the game to check what devices are on or off.

    Advice given to me:

    I would suggest that you have, at the very least, a global variable for the amount of electricity available (the first game based the gameplay on managing energy), then have every energy-consumable device (doors, lights, cameras, etc) have an "In Use" boolean variable, just to let the program know when they are ON or OFF.

    Now, on every tick make the game check how many of the devices are ON, and based on that you can obtain the energy used in that tick. The more devices ON, the more energy wasted.

    Make use of the "In Use" boolean to toggle the lights and doors ON and OFF as well! That way, if Door_1 is "ON", then show the graphic for Door_1 closed. More or less like that.

  • have one layer as your main scenario, another one behind (showing the halls) put the doors behind the front layer so they can't be seen when open (up position) , move the doors with 8 direction or bullet behavior, and put a solid object to limit the movement. create variables to check is the door is open or closed when the button is pressed and move accordingly... that's all, you survived, go for your paycheck

    drive.

    google.

    com/file/d/0B8cxVTQvtj-GQ2NPY0ZBWDlFYUU/view?usp=sharing

    Thats the link, I couldnt post them properly as it wont allow me to currently, but i really need help with this.

  • Check this tutorial, maybe will help you :

    Ive checked that out, thats just the animation for the 5am to 6am clock, im not havin trouble with that at the moment gotten that working

  • have one layer as your main scenario, another one behind (showing the halls) put the doors behind the front layer so they can't be seen when open (up position) , move the doors with 8 direction or bullet behavior, and put a solid object to limit the movement. create variables to check is the door is open or closed when the button is pressed and move accordingly... that's all, you survived, go for your paycheck

    Actually, it wont let me post the link, ill pm you it if its ok?

dalekman9999's avatar

dalekman9999

Member since 8 Mar, 2015

None one is following dalekman9999 yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies