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

#1
I had to do this when I wanted the character to say something when he approached the edge of a Walkable Area, in this case the sea:

Code: ags
function region1_WalksOnto()
{
#define i 5 //total messages
String message[i];
message[0] = "Nope, I can't stand salty water.";
message[1] = "I don't want wet feet!";
message[2] = "Not going to ruin my shoes man...";
message[3] = "No way, what if there are sharks?";
message[4] = "Hmmm, I don't think I can swim...";
int index = Random(i - 1);
player.Say(message[index]);
}
#2
Hi there! First post. I'm a 46 year old point-and-click fan, already from the 1980s with Sierra, and LucasArts. Now, I'm playing a bit with AGS to see if I can make my own game. It will take a while though :)

Anyway, I have this script with an animated object of a flying bird:

Code: ags
function room_FirstLoad()
{
cBird.SetView(2);
cBird.Move(325, 20, -1, eNoBlock, eAnywhere);
cBird.Animate(0, 5, eRepeat, eNoBlock, eForwards);
}

Works great! But now I want to make the bird appear smaller as it's flying towards the horizon. Is that possible?

Many thanks in advance!

SMF spam blocked by CleanTalk