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 MenuQuote from: Brentimous on Sat 19/12/2009 07:09:51
I thought you did a great job with the legs. I just put in a bounce and added a bit to the moving arm.
Quote from: Scarab on Thu 17/12/2009 17:58:36
You should add a pixel or two of bounce to his upper body (down when his legs are furthest apart). This should help it look a bit more natural.. and perhaps a bit more movements in the arms (even his left arm should be moving a bit).
Apart from that the animation looks quite solid. You could even keep the walk at that speed if you smoothed it out with a few 'tween' frames.
Quote from: Pumaman on Mon 16/11/2009 22:42:05
I just noticed that the Scripting Tutorial still uses GetGlobalInt, which is probably what is confusing some people into thinking they need to use it. I've now changed the tutorial so it doesn't do that any more.
Quote from: Gilbet V7000a on Mon 16/11/2009 15:51:55
Since you're still using the (obsolete by some people's standard) Global Ints, note that they're numbered. So, if demostatus and democomputer are two integer variables having the value, GlobalInt(demostatus) and GlobalInt(democomputer) refer to the same entry.
Make sure you know that GlobalInts take on an integer index.
My bet is that you just declared int demostatus; and int democomputer; for the scripts to compare, which prompted that these two variables were both initialised as zero and thus, GlobalInt(demostatus) and GlobalInt(democomputer) both point to the same entry, GlobalInt(0).
I now see your second post, so I'll elaborate more on this. Here, GlobalInt(blah) refers to a variable entry with index blah. It is NOT the variable blah. A more "modern" way to use global variables is to first do this in the global script:Code: ags int blah; export blah;
and then in the script header:Code: ags import int blah;
Then you can access the variable blah directly by doing stuff like blah=4 and if (blah ==3) {... like NsMn mentioned. There is no need to use the lagacy GlobalInt() unless you really need them for some reasons.
int blah = 0;
export blah;
import int blah;
blah = 5;
function oChair_Interact()
{
if (GetGlobalInt(demostatus) == 1) {
cEgo.Say("I don't think that's a good idea at the moment");
}
if (GetGlobalInt(demostatus) >= 2 || GetGlobalInt(demostatus) == 0) {
cEgo.Walk(390, 313, eBlock, eWalkableAreas);
cEgo.FaceLocation(cEgo.x, cEgo.y - 10, eBlock);
cEgo.Transparency = 100;
oChair.SetView(CHAIRS, 0, 3);
oChair.Move(274, 331, 1, eBlock, eAnywhere); // End of animation
if (GetGlobalInt(democomputer) >= 2) {
SetGlobalInt(democomputer, 3);
cEgo.ChangeRoom(275);
} else if (GetGlobalInt(democomputer) <= 1) {
oObject7.SetView(MONITORS, 0, 1);
cEgo.Say("It needs a password! ");
SetGlobalInt(democomputer, 1); // THIS LINE CAUSES THE PROBLEM
Wait(40);
oObject7.SetView(MONITORS, 0, 0);
Wait(15);
oChair.Move(364, 331, 1, eBlock, eAnywhere);
oChair.SetView(CHAIRS, 0, 2);
cEgo.Transparency = 0;
}
}
}
Quote from: Brentimous on Thu 15/10/2009 19:26:14
Shortened him up, tuned the colors a little, and gave his shoulders a nice shave.
Quote from: Mazoliin on Wed 23/09/2009 15:59:08
Do you have a custom script for the normal mouse clicks?
If so, maybe there's something there that's the problem.
And you could try setting the ActivInventory manually and see what happens.
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.199 seconds with 15 queries.