Can be this because of space in "Haydutlar 4" folder name?
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: Monsieur OUXXI think reason is not "ProcessClick" but "on_mouse_click(event);" call (couple of lines above).
Oh yes, I didn't notice the "ProcessClick".
That's definitely the reason.
Quote from: AndFisher on Sun 20/06/2010 23:29:16Please, post related part of your code here. It would be nearly impossible to guess what's wrong there without actual code. It can be a mistake in your code, a simple typo, etc.
The problem is, if my customs function is defined above the on mouse click function I get an undefined token error when I try to compile
QuoteYes, in AGS script the called function body should be defined before it's called first.
I have programmed in other OO languages before, and it seems alien to me that a function must be defined before it is referenced anywhere else in the script. Of course it should be defined before a call to it is executed however. Unless I have totally missed something
function on_key_press(eKeyCode keycode){
if (keycode == eKeyTab) pressingTAB = !pressingTAB;
}
function on_key_press(eKeyCode keycode){
if (keycode == eKeyTab) pressingTAB = !pressingTAB;
if (pressingTAB) {
//Cursor fixed to viewscreen
mouse.SetBounds(208, 130, 588, 355);
}
else
mouse.SetBounds(0, 0, 0, 0);
}
}
if (pressingTAB) {
//Mouse Steer
if (mouse.x <= 221) cEgo.x = cEgo.x - 6;
if (mouse.x >= 575) cEgo.x = cEgo.x + 6;
if (mouse.y <= 143) cEgo.y = cEgo.y - 6;
if (mouse.y >= 342) cEgo.y = cEgo.y + 6;
}
}
Quote from: SteveMcCrea on Sun 20/06/2010 16:56:33Yeah, that's true. I guess it was rather formal addition (same as various "skip" functions that skip same number of bytes, but may be used to simply help user distinguish which sorts of data he skips).
Interesting...
I'm not sure how useful the UInt32 functions are since you can't work with them in AGS.
Quote from: SteveMcCrea on Sun 20/06/2010 16:56:33I am not sure it is wise to use global endianness setting here, because there's no guarantee that end-user will not open 2 or more files at a time, one of which would need little-endian reading order and another big-endian one. I know that the chance this will happen is quite low, but it is still possible.
I would recommend having a global function to set the endianness, rather than having to pass an extra parameter in each function. You could have a separate reading endianness and writing endianness. Or perhaps you could set the endianness on each FILE - that would probably slow things down too much though, looking up the endianness inside each read/write function.
Quote from: Monsieur OUXX on Sun 20/06/2010 13:29:33Why, it's good to know someone will need this
That'll come handy for me. I started writing similar stuff, but didn't have time to polish the result, while working on everything else.
Quote from: TerranRich on Sun 20/06/2010 07:02:32Looks more like an Uzi now
I did a paintover. Here is my interpretation:
// String.IndexOfInstance extender function
// Seeks for Nth instance of given substring sample in the string, starting from the given character
int IndexOfInstance(this String*, String needle, int instance, int from)
{
int i = from;
int char_match;
int instance_found;
int found_from = -1;
while (i < this.Length)
{
if (this.Chars[i] == needle.Chars[char_match])
{
if (found_from == -1) found_from = i;
char_match++;
if (char_match == needle.Length)
{
if (instance_found == instance)
{
return found_from;
}
instance_found++;
char_match = 0;
found_from = -1;
}
}
else
{
char_match = 0;
found_from = -1;
}
i++;
}
return -1;
}
bool IsInventoryFull(Character*);
bool IsInventoryFull(this Character*)
{
// do inventory check and return true or false
}
Quote from: Monsieur OUXX on Fri 18/06/2010 10:57:56Yep, they do.
Correct me if I'm wrong. In your code sample, in order to be able to call the original version of "SetData" (the one originally defined for "Parent"), you actually store copies of all the parents. However, don't the chidren contain their own value of the the member "data"?
Quote from: Monsieur OUXX on Fri 18/06/2010 10:57:56The whole code above is a screwed workaround which does not make much sense and has an effeciency close to zero.
Why doing all this duplication, instead of just keeping one and only instance of a "Parent" object that you'd call whenever you want to borrow its "SetData" ?
Quote from: ddq on Wed 16/06/2010 23:01:11
If your game is going to have a big evil antagonist, what form is most effective in terms or horror? As far as I can figure, there are three big types of horror antagonists. First, some sort of murdering psychopath or something, but grounded in reality with no supernatural ties. Second, a powerful, unknowable evil, like an Eldritch abomination. Or finally, a middle ground, like a cult of ordinary psychopaths that worship/get their power from the evil power. I personally think that cults have been overdone, but that could be because they are the most effective.
Thoughts?
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 4.738 seconds with 16 queries.