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.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 »
436
globalvar to global var macro needed. Already known just referencing.
Tracker Reference:
http://enigma-dev.org/tracker/ticket.php?id=91
Tracker Reference:
http://enigma-dev.org/tracker/ticket.php?id=91
437
Proposals / Changing xprevious / yprevious whenever x / y is changed
« on: March 05, 2011, 10:36:45 am »
xprevious / yprevious should be changed whenever an instance's x / y variable is changed.
Tracker Reference:
http://enigma-dev.org/tracker/ticket.php?id=88
Tracker Reference:
http://enigma-dev.org/tracker/ticket.php?id=88
438
Proposals / propogate_locals should be called after the step event
« on: March 05, 2011, 03:35:55 am »
propogate_locals is current called at the start of each instance's step event. However for compatibility a separate pass should be made for this after the step event.
Tracker Reference:
http://enigma-dev.org/tracker/ticket.php?id=87
Tracker Reference:
http://enigma-dev.org/tracker/ticket.php?id=87
439
Proposals / Re: 2 bugged GM files
« on: March 05, 2011, 03:13:02 am »
I have been trying to debug this myself. I have found that the result of this bug is actually due to two issues:
1) background_showcolor is not used
In roomsystem.c background_color is defined using:
Note that when this is fixed GSscreen.cpp also needs updating. It uses (in 2 places):
2) The instance's parent draw code is not being executed in my particular file.
EDIT: No longer a problem.
1) background_showcolor is not used
In roomsystem.c background_color is defined using:
Code: (C++) [Select]
background_showcolor = (backcolor!=-1);
Instead of from the background_showcolor boolean from LGM.Note that when this is fixed GSscreen.cpp also needs updating. It uses (in 2 places):
Code: (C++) [Select]
if (background_showcolor)
{
int clearcolor=((int)background_color)&0xFFFFFF;
glClearColor(__GETR(clearcolor)/255.0,__GETG(clearcolor)/255.0,__GETB(clearcolor)/255.0, 1);
glClear(GL_COLOR_BUFFER_BIT);
}
An else statement should be added to this clearing the screen in black (as GM does).2) The instance's parent draw code is not being executed in my particular file.
EDIT: No longer a problem.
441
Proposals / Re: room_speed
« on: March 04, 2011, 02:52:46 pm »
Oh I see what it's doing now, I misunderstood it's purpose.
443
Proposals / Re: Function approval process
« on: March 03, 2011, 12:18:31 pm »
OK so is this set to go then? I want to make sure we can actually sort something out because I believe it is necessary to help drive progress.
So the first thing needed is to populate the function list on wiki. Are you working on this TGMG?
So the first thing needed is to populate the function list on wiki. Are you working on this TGMG?
444
Proposals / Re: Action functions plugin writing
« on: March 03, 2011, 10:13:46 am »
I don't get? Isn't it just better to pass it as an argument anyway? It seems preferable for function calling.
445
Function Peer Review / Re: action_move_to
« on: March 02, 2011, 04:22:46 pm »
Oh using a default parameter is fine then?
Code: (C++) [Select]
inline void action_move_to(double x, double y, bool argument_relative = false)
{
enigma::object_planar* const inst = ((enigma::object_planar*)enigma::instance_event_iterator->inst);
if (argument_relative)
{
inst->x += x;
inst->y += y;
}
else
{
inst->x = x;
inst->y = y;
}
}
You won't need argument_relative as a global variable then. Why wasn't this just used to start with?
446
Function Peer Review / Re: action_move_to
« on: March 02, 2011, 02:36:36 pm »
I'm failing to see how it will work without overcomplicating things since when the gml action_* functions don't take the relative argument.
447
Function Peer Review / Re: action_move_to
« on: March 02, 2011, 11:40:32 am »Quote
So it needs to keep track of where to actually close the '{' for action_if's (that have the relatvie checkbox) which is much more complex than passing the value in by the argument.Can't you put the closing brace in then move back up into the statements?
448
Function Peer Review / Re: action_move_to
« on: March 02, 2011, 01:08:05 am »
I've just seen in Universal System:
https://enigma-dev.svn.sourceforge.net/svnroot/enigma-dev/trunk/ENIGMAsystem/SHELL/Universal_System/actions.h
I'm presuming this isn't actually called, but will be?
https://enigma-dev.svn.sourceforge.net/svnroot/enigma-dev/trunk/ENIGMAsystem/SHELL/Universal_System/actions.h
I'm presuming this isn't actually called, but will be?
449
Function Peer Review / Re: action_move_to
« on: March 01, 2011, 11:50:28 pm »
So I see, you would work relative like so EDL:
Calling plain as:
Code: (EDL) [Select]
argument_relative = true;
action_move_to(4, 4);
Should use the action relative. This I presume would actually work in gml however it doesn't allow you to set the argument_relative variable.Calling plain as:
Code: (EDL) [Select]
action_move_to(4, 4);
Should always use the action not relative. This means that the argument_relative variable should always be set false after an action is called.
450
Proposals / Re: Action functions plugin writing
« on: March 01, 2011, 11:31:00 pm »
Why are the argument_* global variables a different scope to the rest of the global variables? I can't use them inside function definitions...