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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Infinite Monster Path
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#6
RE: Infinite Monster Path

You would need to script a loop, in which if it gets to a certain number, it resets back to 0 or something.

Take this pseudocode for example:

Spawn Enemy
For i < 7 Do
    Enemy goes to pathnode(i)
    i += 1
    if i = 7 Then
              i = 0
    end if
Next

What happens above is the enemy will walk to the appropriate pathnode, then to the next one. After it gets to the sixth pathnode, it will go back to the first pathnode.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 11-29-2013, 02:41 PM by Romulator.)
11-29-2013, 02:40 PM
Find


Messages In This Thread
Infinite Monster Path - by KiraImmortal - 11-27-2013, 02:11 AM
RE: Infinite Monster Path - by RedKnight - 11-27-2013, 08:05 AM
RE: Infinite Monster Path - by Fatalist - 11-27-2013, 08:20 AM
RE: Infinite Monster Path - by RedKnight - 11-27-2013, 08:27 AM
RE: Infinite Monster Path - by KiraImmortal - 11-29-2013, 12:20 AM
RE: Infinite Monster Path - by Romulator - 11-29-2013, 02:40 PM
RE: Infinite Monster Path - by KiraImmortal - 12-01-2013, 01:36 PM
RE: Infinite Monster Path - by PutraenusAlivius - 12-01-2013, 02:27 PM
RE: Infinite Monster Path - by KiraImmortal - 12-01-2013, 11:23 PM



Users browsing this thread: 1 Guest(s)