User Tag List

Results 1 to 10 of 42

Thread: ghost.zh - A header file for ghosted enemy scripts

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Floormaster Imzogelmo's Avatar
    Join Date
    Sep 2005
    Location
    Earth, currently
    Age
    45
    Posts
    387
    Mentioned
    7 Post(s)
    Tagged
    3 Thread(s)
    vBActivity - Stats
    Points
    1,464
    Level
    12
    vBActivity - Bars
    Lv. Percent
    95.39%
    I recommend this be stickied.

    EDIT:

    I found a... well, an oddity let's say.
    When using Ghost_CanMove with the diagonal directions, it's possible to get wrong results.
    The reason is that it simply composes the two other directions. For example, say you're doing this:

    Ghost_CanMove(DIR_LEFTUP,1,0);

    The result will be essentially (Ghost_CanMove(DIR_LEFT,1,0) && Ghost_CanMove(DIR_UP,1,0));
    However, if the enemy found itself in a scenario like this:

    |X|
    ___ *

    Then both LEFT and UP are true, but LEFTUP is not.

    Thus, oddity.
    Last edited by Imzogelmo; 08-30-2011 at 05:21 PM.

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