The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Door Question
Nevicar Offline
Junior Member

Posts: 37
Threads: 4
Joined: Mar 2012
Reputation: 0
#1
Door Question

This is the situation:


I have a key that I pick up, and a door behind me. I want to code it to find out if the door is closed, to open it, and if it's open, to close it. I'm not sure if this would be an actual "if" statement, but the way I'm looking at it it would sound like one.

I'm just having trouble combining the functions to make one, or having one call the other.

Thanks!
(This post was last modified: 03-08-2012, 05:44 AM by Nevicar.)
03-07-2012, 11:00 PM
Find


Messages In This Thread
Door Question - by Nevicar - 03-07-2012, 11:00 PM
RE: Door Question - by Strembitsky - 03-08-2012, 02:03 AM
RE: Door Question - by Nevicar - 03-08-2012, 02:34 AM
RE: Door Question - by Nevicar - 03-08-2012, 03:43 AM
RE: Door Question - by Strembitsky - 03-08-2012, 03:47 AM
RE: Door Question - by Your Computer - 03-08-2012, 03:49 AM
RE: Door Question - by Nevicar - 03-08-2012, 05:44 AM



Users browsing this thread: 1 Guest(s)