Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: Spooky Mist Script

  1. #1
    Newcomer Falco's Avatar
    Join Date
    Oct 2015
    Location
    Iowa City, Iowa
    Posts
    10

    Spooky Mist Script

    Hi guys, thought I'd show off a script that I'm using in my haunted house level. Feel free to use it, but please give me credit in your level!

     Spoiler
    //#CLIENTSIDE
    function onCreated()
    {
    temp.rand = int(random(1, 6));
    setimg( format("blookat-clouds.gif", temp.rand) );
    setcoloreffect(0.4, 0.4, 0.4, 0.4);
    setzoomeffect(6);
    dontblock();
    drawoverplayer();
    this.speed = 1;
    this.radius = 8;
    this.ox = x;
    this.oy = y;
    setTimer(0.05);
    }
    function onTimeout()
    {
    if (this.movetick <= 0)
    {
    dx = random(-2, 2);
    dy = random(-2, 2);
    dist = (dx * dx + dy * dy) ^ 0.5;
    time = (dist / this.speed);
    move(dx, dy, time, 0);
    this.movetick = time;
    }
    else
    {
    this.movetick -= 0.05;
    }
    if (this.x < (this.ox - this.radius) ||
    this.y < this.oy - this.radius ||
    this.y > this.oy + this.radius ||
    this.x > this.ox + this.radius)
    {
    x = this.ox;
    y = this.oy;
    }
    setTimer(0.05);
    }
    Somewhere, something incredible is waiting to be known. - Carl Sagan


    Class of 2020

  2. #2
    Not Actually Banned Yet Bulletzone's Avatar
    Join Date
    Apr 2015
    Location
    United Kingdom
    Posts
    2,849
    I don't do Gs2; thus I don't know what it does .
    "A fool thinks they know everything but a wise person knows there's something to learn from everyone"
    -
    "Great leaders don't complain about the tools they are given. They work to sharpen them"

  3. #3
    I understand like a bit of that, I don't do Gs2 but I'll be learning how. I know JavaScript.
    IGN - Daniiel
    Contact on forums, email, or in game for assistance

  4. #4
    Newcomer
    Join Date
    Aug 2013
    Location
    Beside my pc
    Posts
    24
    Is it a script for a moving cloud?

  5. #5
    Newcomer Falco's Avatar
    Join Date
    Oct 2015
    Location
    Iowa City, Iowa
    Posts
    10
    It's more of a mist/fog-like effect. While I use a cloud as a base, it's more so a moving cloud, of mist.
    Somewhere, something incredible is waiting to be known. - Carl Sagan


    Class of 2020

  6. #6
    hextraordinary Hex's Avatar
    Join Date
    Jun 2013
    Location
    Straya
    Posts
    2,906
    Quote Originally Posted by Falco View Post
    It's more of a mist/fog-like effect. While I use a cloud as a base, it's more so a moving cloud, of mist.
    You should make a quick 5 second video of it in action.

  7. #7
    Newcomer Falco's Avatar
    Join Date
    Oct 2015
    Location
    Iowa City, Iowa
    Posts
    10
    I've got no online servers to test it on. I'll try to get on testbed!
    Somewhere, something incredible is waiting to be known. - Carl Sagan


    Class of 2020

  8. #8
    Newcomer
    Join Date
    Aug 2013
    Location
    Beside my pc
    Posts
    24
    I guess that TestBed is closed or something.

  9. #9
    Quote Originally Posted by Falco View Post
    I've got no online servers to test it on. I'll try to get on testbed!
    You should've applied for DarkKnight's server, I don't think you can longer apply.

  10. #10
    Newcomer Falco's Avatar
    Join Date
    Oct 2015
    Location
    Iowa City, Iowa
    Posts
    10
    Quote Originally Posted by Daniiel View Post
    You should've applied for DarkKnight's server, I don't think you can longer apply.
    DarkKnight, as in the level artist from a few years ago?
    Somewhere, something incredible is waiting to be known. - Carl Sagan


    Class of 2020

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •