User Tag List

Results 1 to 5 of 5

Thread: Question regarding multiple ffc scripts.

  1. #1
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,826
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,959
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.27%

    Question regarding multiple ffc scripts.

    This one's bugging me. Let's say you have one ffc script that keeps enemy X centered at this ffc. Then you have another ffc script that, once activated, centers enemy X at that ffc. Sometimes it's centered at ffc 1, other times ffc 2.

    How would someone set it up so that ffc 1 would always get priority over any and all other scripts trying to access the location of enemy X? ...Or in other words, the enemy is always centered at ffc 1, even though another script may try to change that.
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  2. #2
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,304
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.83%

    Re: Question regarding multiple ffc scripts.

    When you centre the enemy at the first ffc, have it set a global variable whilst it's centred there.
    When you try to centre it at the lower priority ffc, have it check that variable first.

  3. #3
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,826
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,959
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.27%

    Re: Question regarding multiple ffc scripts.

    Hooboy...Do you know how many scripts do this? I'd have to keep track of all sorts of crap, and add lines to every one of them.

    It's just odd that this behavior changes from screen to screen, script to script...if only there was something simple...
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  4. #4
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,029
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.58%

    Re: Question regarding multiple ffc scripts.

    The script attached to the FFC with highest number should execute last.

  5. #5
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,826
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,959
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.27%

    Re: Question regarding multiple ffc scripts.

    Ah, so that's it. Well at least we know that works. Well all I have to do is change the order of all my ffc scripts..... One wouldn't be able to change the execution order of these manually i'm guessing.
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social