Blockland Forums > General Discussion
Weeping Angels - Poll added
<< < (24/26) > >>
Port:
Here's what you could do it like:

Scatter nodes across your map and run a constant schedule.
In that schedule, do something like the following:

if angel.nobody_looking
    path = find path over nodes from angel location to a chosen target with a travel distance limited based on time since angel.nobody_looking_start

    if some players can see angel
        teleport angel to last point in path
        angel.nobody_looking = false
        angel.nobody_looking_start = 0

    otherwise, if path reached target
        teleport angel right behind target
        kill target or teleport target to proper "timeless" location

otherwise, if no players can see angel
    angel.nobody_looking = true
    angel.nobody_looking_start = current elapsed game time in seconds

EDIT: This would cause a quick noticeable teleport effect right after you turn. Instead, every time the latest node you can get to changes, teleport it to that node. And to make it even better, start the path from there instead too. Although, for the best performance, you should just compute the path once when everybody starts to look away.
OzmarBlock:
The first time I came to the server, nobody was on and it was dark. I thought I would find something scary there...
Nymph:

--- Quote from: Port on February 18, 2013, 02:14:56 AM ---Here's what you could do it like:

Scatter nodes across your map and run a constant schedule.
In that schedule, do something like the following:

if angel.nobody_looking
    path = find path over nodes from angel location to a chosen target with a travel distance limited based on time since angel.nobody_looking_start

    if some players can see angel
        teleport angel to last point in path
        angel.nobody_looking = false
        angel.nobody_looking_start = 0

    otherwise, if path reached target
        teleport angel right behind target
        kill target or teleport target to proper "timeless" location

otherwise, if no players can see angel
    angel.nobody_looking = true
    angel.nobody_looking_start = current elapsed game time in seconds

--- End quote ---
well iv got no idea how to script, so i wouldn't be able to implement it anyway :/
Port:

--- Quote from: Nymph on February 18, 2013, 01:36:24 PM ---well iv got no idea how to script, so i wouldn't be able to implement it anyway :/

--- End quote ---

That was mostly directed towards whoever is coding this.
Nymph:

--- Quote from: Port on February 18, 2013, 02:56:47 PM ---That was mostly directed towards whoever is coding this.

--- End quote ---
Nobody is atm
Navigation
Message Index
Next page
Previous page

Go to full version