User Tag List

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

Thread: Randomly moving around

  1. #1
    Octorok
    Join Date
    Mar 2006
    Posts
    271
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,624
    Level
    13
    vBActivity - Bars
    Lv. Percent
    54.8%

    Randomly moving around

    Please can somebody make me a script where a combo randomly moves around the screen but does not go over unwalkable areas?

    I would like to use this in my quest when I get round to it. *gets round to it*

    Thanks, Limzo.

  2. #2
    Lynel Revfan9's Avatar
    Join Date
    Jun 2005
    Location
    In front of a screen. I never leave.
    Age
    31
    Posts
    1,160
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,390
    Level
    18
    vBActivity - Bars
    Lv. Percent
    71.05%

    Re: Randomly moving around

    Code:
    WAIT WAITFRAME
     COMPAREV CANMOVE,1
     GOTOTRUE REVERSE
     COMPAREV d0,0
     GOTOTRUE TURNU
     SUBV d0,1
     COMPAREV d1,0
     GOTOTRUE TURNR
     SUBV d1,1
     GOTO WAIT
    REVERSE
     COMPAREV xd,0
     GOTOFALSE YMOV
     MULTV xd,-1
    YMOV COMPAREV yd,0
     GOTOFALSE WAIT
     MULTV xd,1
     GOTO WAIT
    TURNU SETV xd,0
     SETV yd,1
     SETR d0,d2
     GOTO WAIT
    TURNR SETV yd,0
     SETV xd,1
     SETR d1,d3
     GOTO WAIT
    Should work... Lemme know if it doesn't.

  3. #3
    Octorok
    Join Date
    Mar 2006
    Posts
    271
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,624
    Level
    13
    vBActivity - Bars
    Lv. Percent
    54.8%

    Re: Randomly moving around

    Sorry to be a noob, but I don't know how to use Scripts at all. I can only use FFCombo scripting, and not very well.
    EDIT: Stupid me, this is FFCombo scripting. Forget that Pm revfan.
    EDIT2: Okay, it doesn't work. It comes up with the message,
    "Unable to parse instruction 2 from script random.txt
    The error was: Parameter 1 invalid.
    The command was (COMPAREV) (CANMOVE, 1)"

    *tries to fix from past experiences*

  4. #4
    Gibdo bluedeath's Avatar
    Join Date
    Jul 2006
    Location
    New Brunswick, Canada
    Age
    30
    Posts
    720
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,775
    Level
    17
    vBActivity - Bars
    Lv. Percent
    14.76%

    Re: Randomly moving around

    go to z-script and when you type the code, seems there is lot of caps in the code so make sure you capital them and when you do so compile it go to freeformcombos and select and edit a combo choose your tile and go to select script. i hope this helps

  5. #5
    Lynel Revfan9's Avatar
    Join Date
    Jun 2005
    Location
    In front of a screen. I never leave.
    Age
    31
    Posts
    1,160
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,390
    Level
    18
    vBActivity - Bars
    Lv. Percent
    71.05%

    Re: Randomly moving around

    CANMOVE doesn't work as a variable in Zasm... damn... Does anyone know the Zasm equivilant of CANMOVE?

  6. #6
    Octorok
    Join Date
    Mar 2006
    Posts
    271
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,624
    Level
    13
    vBActivity - Bars
    Lv. Percent
    54.8%

    Re: Randomly moving around

    Nonono, I went on Tools > Import FF script.

    Let me guess, it's not that kind of script.

  7. #7
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,433
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.07%

    Re: Randomly moving around

    No, you had it right. It's ASM, so it's imported rather than compiled.

    Quote Originally Posted by Revfan9
    CANMOVE doesn't work as a variable in Zasm... damn... Does anyone know the Zasm equivilant of CANMOVE?
    I'm not sure precisely what you're trying to do with it; you're trying to test the solidity of a combo, I take it?
    To do that, load the position of the combo you want to test into D0 and use COMBOSD. That'll give you a 4-bit number representing the solidity of the combo; you can check the solidity of each quarter separately using AND. 1 for the top-left, 2 for the bottom-left, 3 for the top-right, and 4 for the bottom-right. 1 is solid, 0 is walkable.

  8. #8
    Octorok
    Join Date
    Mar 2006
    Posts
    271
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,624
    Level
    13
    vBActivity - Bars
    Lv. Percent
    54.8%

    Re: Randomly moving around

    Sorry, I lost track after FFCombos and scripting became more advanced.

    Please can you explain? I have no idea what those "D" boxes do.

  9. #9
    Octorok
    Join Date
    Mar 2006
    Posts
    271
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,624
    Level
    13
    vBActivity - Bars
    Lv. Percent
    54.8%

    Re: Randomly moving around

    Please guys, I need this for random battles.

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

    Re: Randomly moving around

    Patience my friend, the AGN boards are slow these days and you sometimes need to give people a few days to respond to posts.

    What kind of "random" movement to you want?
    1. A random walk in two dimensions?
    2. Two simultaneous random walks in one dimension?
    3. Constant velocity in the cardinal directions, with the direction chosen randomly when an unwalkable tile is hit?
    4. Constant velocity in any direction, with the direction chosen randomly when an unwalkable tile is hit?
    5. As in 3 or 4, but with a fixed probability of spontaneously changing direction every few frames?
    6. As in 5, but with the direction change biased towards the current player position (darknut movement)?
    7. Something else entirely?

    The power is yours.

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