1 Reply Latest reply on Jul 6, 2006 5:35 PM by Newsgroup_User

    Control of cells in a game

    Level 7
      Hello:

      Can you guide me in a game, please?.
      I need to move one sprite through cells. How can do something like this:

      move to cell 1 or move to cell 34 for example.

      How can I reference to individual cells? Can you tell me some ideas?
      Thank you very much


        • 1. Re: Control of cells in a game
          Level 7
          In the simplest form, each cell could be a separate tool window rect
          sprite, say you have 40 of them in channels 10 to 50.

          then to place another sprite in a cell

          sprite(60).loc = sprite(20).loc -- places sprite 60 at sprite 20's loc


          to center a bitmap sprite within the rect sprite change the bitmap's
          regpoint to it's upper-left, fine tuning the regpoint to center it.