Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - khalilsajadi

#1
I have a mythical creature I would like to disappear after he gives the main char a clue. I know to make him disappear you use, in my example, cLeshy.ChangeRoom(0); but I'm not sure where to put it so that he disappears directly when the conversation ends. I tried adding a hotspot right next to the one that makes the npc appear, but it's an awkward delay to wait for the main char to walk, hit the hotspot, and THEN make the npc disappear. Any suggestions?
#2
I enter a room from the left, and my npc is standing in the middle there as usual, but a sprite of my character also appears behind the NPC, so there are two of me on the screen! How do I make that doppelgänger disappear?! XD Thanks in advance for any help.
#3
In my game I have a ham that the character can talk to. I created the ham as a character so it could speak. At the end of the dialogue, I want my character to be able to pick up the ham, bring him to another room, and set him down again. To experiment with this, I tried creating an object that was the ham, and coded it so that when I use the interact option on oHam, it disappears and is then in my inventory. Looks like this:

function oHam_Interact()
{
  oHam.Visible = false;
  player.AddInventory(iHam);
}

So, obviously, now there are two hams on the screen. XD

Is there a way I can either:
a. have dialogue with an object, or
b. make cHam invisible (after the dialogue) and still have iHam show up in my inventory, and then just make the NPC reappear in another room after I drop the inventory item?
SMF spam blocked by CleanTalk