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


Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A Late Night Drink
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#23
RE: A Late Night Drink

(03-06-2013, 06:36 AM)DeAngelo Wrote:
(03-06-2013, 04:50 AM)JustAnotherPlayer Wrote: Billboard is too bright! Tone it down a bit. And the billboard looks a bit big. Make sure the offset or size is not too big. And what you're saying if Player collided with this area, stuff happens and if Player does not, other things happen?

Nah, what I'm saying is that when a player collides with an area (or anything else happens to trigger the script) the script checks if a condition is filled (such as you having an item in your inventory, a puzzle being completed, a door being open, or a bunch of other possibilities) and if that condition is filled it does something. From what I've read, you can also put an "else" in there somewhere for it to do something if the condition is not filled, but I've just been leaving the else part out since any time I've used an if statement I've wanted nothing to happen if a condition isn't filled. Although I'm pretty sure you can get the effect you mentioned by making the "if" statement look for if you're currently collided with an object. Though I dunno if collision is a constant thingy that can be checked by other bits of script. I'll have to look into that. I only started learning scripting a few weeks ago so I'm still new to all this. I think I'm progressing pretty fast though.

Thanks on the billboard. I'm still tinkering with good colors and stuff. Oh and it's not too big, there's just 4 of them lol. I wanted it to look like a separate ray of light was going through each part of the window but it all just bleeds together. Smile

If Player is still colliding with an area, another function can check it. Ever wonder about the int alState sentence in your script? int alState means integer alState. EX:


if (alState == 1 )
{
//(KILLPLAYERSCRIPT)
}
if (alState == -1)
{
//Do Nothing.
}
-1 = Player IS NOT colliding with scriptarea
1 = Player is colliding with scriptarea
(NOTE: I've never use this. I'm currently learning about it.)

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 03-06-2013, 07:21 AM by PutraenusAlivius.)
03-06-2013, 07:20 AM
Find


Messages In This Thread
A Late Night Drink - by DeAngelo - 03-03-2013, 03:02 PM
RE: A Late Night Drink - by No Author - 03-03-2013, 03:08 PM
RE: A Late Night Drink - by DeAngelo - 03-03-2013, 03:11 PM
RE: A Late Night Drink - by PutraenusAlivius - 03-03-2013, 03:15 PM
RE: A Late Night Drink - by DeAngelo - 03-03-2013, 03:32 PM
RE: A Late Night Drink - by PutraenusAlivius - 03-03-2013, 03:42 PM
RE: A Late Night Drink - by DeAngelo - 03-03-2013, 03:43 PM
RE: A Late Night Drink - by PutraenusAlivius - 03-03-2013, 03:53 PM
RE: A Late Night Drink - by DeAngelo - 03-03-2013, 06:32 PM
RE: A Late Night Drink - by Obsidiaguy - 03-03-2013, 07:33 PM
RE: A Late Night Drink - by DeAngelo - 03-03-2013, 10:30 PM
RE: A Late Night Drink - by PutraenusAlivius - 03-04-2013, 09:06 AM
RE: A Late Night Drink - by DeAngelo - 03-04-2013, 06:25 PM
RE: A Late Night Drink - by HumiliatioN - 03-04-2013, 07:21 PM
RE: A Late Night Drink - by DeAngelo - 03-05-2013, 01:08 AM
RE: A Late Night Drink - by Adrianis - 03-05-2013, 02:27 PM
RE: A Late Night Drink - by PutraenusAlivius - 03-06-2013, 04:50 AM
RE: A Late Night Drink - by DeAngelo - 03-06-2013, 06:36 AM
RE: A Late Night Drink - by PutraenusAlivius - 03-06-2013, 07:20 AM
RE: A Late Night Drink - by 7heDubz - 03-06-2013, 07:03 AM
RE: A Late Night Drink - by DeAngelo - 03-06-2013, 07:40 AM
RE: A Late Night Drink - by PutraenusAlivius - 03-06-2013, 07:41 AM
RE: A Late Night Drink - by DeAngelo - 03-06-2013, 08:05 AM
RE: A Late Night Drink - by PutraenusAlivius - 03-06-2013, 08:16 AM
RE: A Late Night Drink - by DeAngelo - 03-06-2013, 08:34 AM
RE: A Late Night Drink - by CarnivorousJelly - 03-09-2013, 07:25 PM
RE: A Late Night Drink - by DeAngelo - 03-09-2013, 07:43 PM
RE: A Late Night Drink - by CarnivorousJelly - 03-09-2013, 09:42 PM
RE: A Late Night Drink - by DeAngelo - 03-09-2013, 09:53 PM
RE: A Late Night Drink - by CarnivorousJelly - 03-09-2013, 11:46 PM
RE: A Late Night Drink - by CarnivorousJelly - 03-12-2013, 12:40 AM
RE: A Late Night Drink - by DeAngelo - 03-12-2013, 03:57 PM
RE: A Late Night Drink - by Adrianis - 03-12-2013, 07:50 PM
RE: A Late Night Drink - by DeAngelo - 03-12-2013, 08:09 PM
RE: A Late Night Drink - by kartanonperuna - 03-12-2013, 02:35 PM
RE: A Late Night Drink - by PutraenusAlivius - 03-12-2013, 02:36 PM
RE: A Late Night Drink - by Adrianis - 03-12-2013, 02:59 PM
RE: A Late Night Drink - by kartanonperuna - 03-12-2013, 04:40 PM
RE: A Late Night Drink - by DeAngelo - 03-12-2013, 06:28 PM
RE: A Late Night Drink - by Adrianis - 03-12-2013, 08:37 PM
RE: A Late Night Drink - by DeAngelo - 03-12-2013, 09:15 PM
RE: A Late Night Drink - by CarnivorousJelly - 03-12-2013, 08:41 PM
RE: A Late Night Drink - by Adrianis - 03-12-2013, 09:15 PM



Users browsing this thread: 2 Guest(s)