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

Messages - GameMaker_95

#41
Hi,

So I have a room with an object, disguised as a character, working under a car. I also have one standing nearby. I would
like to have it so that if I go to this room before another room, he is working under the car, but if I go to this other room and
get an Item, he will be standing nearby and the only way I believe I can do this is by if, else statements but so far I can't make
it work. Can someone help with this. What I'm trying to do is something like this.

Code: ags

if (player.HasInventory(iBurnie)
object[2].Visible = false;
object[3].Visible = true;
else
object[2].Visible = true;
object[3].Visible = false;


If that makes sense. I just can't seem to code it correctly.

Thanks.
#42
Perfect!

Thank you very much Gurok, you've been a huge help, I can use this code for any other characters moving in the background.

Thanks again.
#43
Thanks Gurok

I can now move my character around but Kate for some reason is walking on the spot. She is on a walkable area
so any idea how to fix that?

Edit: I am going to have to do some work in other areas of the game and come back to this, I entered the room, clicked on a fridge wich opens and
she started moving but stopped at the coordinates and didn't loop.
#44
Hi,

I have a background character named Kate who I would like to walk from one spot to another, repeatedly. The code I have does this -

Code: ags

function room_RepExec()
{
  Kate.Walk(214, 356, eBlock, eWalkableAreas);
  Kate.Walk(470, 351, eBlock, eWalkableAreas); 
}


But the problem is, I can't control the player character and I have tried eNoBlock and it does not work,
Kate will the move one frame and freeze. How can I fix this?

Thank You.

Also, I have searched the manual and the forum exhaustively and could not find anything to help solve this.
SMF spam blocked by CleanTalk