Bee

So, i need some serious help. I have been making that tutorial game using the built in tutorial TA gives. I have been doing well so far but i am stuck on the bee part with " Moving Objects during the game ." I am not actually sure what the tutorial's goal was but i am pretty sure the point was to make the "bee" object not in the game until the window was opened. However, when i follow the instructions to a T, the bee can be seen in the "kitchen" room even before the window is opened. Is there something i am missing? Will this problem be fixed later? Is this supposed to be like this?


in code this is what you want to have:

(hopefully you can figure out how to do this stuff with the GUI/Editor from looking at the code... if not let me know if you need help)

<object name="kitchen">
  <object name="window">
    <inherit name="openable" />
    <attr name="openscript" type="script">
      HelperOpenObject (window)
      if (Contains (kitchen, bee)) {
        msg ("You open the window, not much happens.")
      } else {
        msg ("You open the window and a bee flies into the kitchen.")
        MoveObject (bee, kitchen)
        EnableTimer (bee_timer)
      }
    </attr>
    <attr name="closescript" type="script">
      msg ("You close the window.")
      HelperCloseObject (window)
    </attr>
  </object>
</object>

// ----------------------------------

// SEE HOW THE 'BEE' OBJECT (seen below) IS NOT CONTAINED WITHIN THE 'window' OBJECT (seen above):
 
<object name="bee">
</object>

// ------------------------------------

<timer name="bee_timer">
  <interval>10</interval>
  <script>
    if (player.parent = kitchen) {
      msg ("The bee buzzes past you. Pesky bee.")
    }
  </script>
</timer>

Could you possibly give me a step by step instruction on where i need to put this code. What script do i use and which object do i use it on?


here is my completed tutorial game file, so just open it up in the GUI/Editor, and take a look at it directly:

(I have some extra stuff in it too, as I tried doing some other stuff not in the tutorial guide/instructions/steps/topics)

(the '20' for the timer's interval is a long long long 20 seconds... change it to '5' as even '10' is a long wait, lol)

http://s000.tinyupload.com/index.php?file_id=80384987658950734511 (you just click on the yellow-green 'tutorial finished.aslx', and it'll download it, don't click on all the other trash/ads/stuff the site got showing/popping up)

let me know if the download link doesn't work and/or if my file doesn't work, if there's any problems, let me know.


There has been some issues, I think, with the bee. Here are two ways that I think are easier than what is presented in the tutorial.

  1. Visible/Invisible
    A. Have the bee in the kitchen at all times and make it invisible to start.
    B. When you open the window, run 'make object visible' and choose the bee.
    C. Whenever the bee is shooed away or killed (or whatever) the tutorial says, you can reverse hat and make object invisible.

  2. Have a storage room and move objects in and out of it at will
    A. Make a room - call it 'storage' or whatever. This room should have. I exits/entrances.
    B. Create your bee and stuff him in this room.
    C. When you open window, run the 'move object to current room' script and select bee.
    D. When it's time for the bee to disappear, simply move it back in the storage room by running a 'move object' script.

Let me know if this helps.

I don't even remember what the tutorial suggests but the two methods above I use ALL the time.

Good luck.


Also, I've got lots of demo games and stuff for similar problems if you ever want to use them. Just PM me if you need anything.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums