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 - birenbergg

#1
Yep, it would be nice to have an HiDPI support for the editor.
#2
Hi.

I'd like to implement the following functionality. An NPC aimlessly wanders around the room â€" from point to point â€" and when he stops at the point, a small animation is played.

I tried something like this to make him wander around, which is working.

Code: ags

if (!cNpc.Moving) {
    int x = Random(Room.Width);
    int y = Random(Room.Height);

    cNpc.Walk(x, y, eNoBlock, eWalkableAreas);
}


But when i try to add the animation part (into several wrong places)...

Code: ags

cNpc.LockView(222);
cNpc.Animate(cNpc.Loop, 0, eOnce, eNoBlock);
cNpc.UnlockView();


..it either stops the character's walking around, or freezes the whole game :-/

Any ideas?..
#3
Hi, all. I have a few questions.

Is there a way to:


  • Change hotspot's Description EDIT: I found the solution,posted below.
  • Change inventory item's sprite
  • Skip a cutscene if it has a dialog inside it
  • End a dialogue by pressing a button (e.g Esc) or once a timer is expired
  • Build for Mac

EDIT: 1 & 2 is about dynamically/programmatically changing, of course :)

Thanks a lot for your answers! :)
#4
Is there a way to check if the background music is playing, so it won't restart when the player enters the initial room?

Let's say I have an area with 5 rooms and the background music is shared between them. The player starts in room 1. When he changes to any other room, the music continues playing, but if he returns to room 1, the music restarts. That's not the effect I want.

I could use the event when the player enters the room for the first time, but what if the player quits then entire area and then would want to come back?
SMF spam blocked by CleanTalk