If you are wondering about recursion errors check your code out:Code: (javascript) [Select]function WriteSomething(){ font.drawText(0,0,"All this program does is display this message."); WriteSomething(); // issue here.}Notice you are calling the same function within itself? It is recursive in that fashion, so naturally, it'll go on forever and run out of stack memory. Stack memory is the memory used for function calls. There is a limited space of stack memory, but that doesn't mean you can have a limited number of functions. When you removed this it worked. Now you know what recursion is . (It's not a bug or a bad thing. In fact if you can use it right it's awesome, but it is also tricky).
function WriteSomething(){ font.drawText(0,0,"All this program does is display this message."); WriteSomething(); // issue here.}
var font = GetSystemFont();function WriteSomething(){font.drawText(0,0,"All this program does is display this message.");FlipScreen();}function game(){while (true){WriteSomething();}}
@Mooch - AttachPlayerInput(entity_name, player_index) allows choosing to attach up to 4 different players to entities. IIRC, this is how the Bomberman demo accomplished it.
How did we miss that? Exactly? Me and DaVince and Radnen and whoever else have been posting in this topic lamenting no multiplayer input for days now, and none of us noticed that?
AttachPlayerInput(person_entity, player_index) - makes the 'person_entity' respond to the input Currenty player_index has to be from zero to four (max four players) Note: AttachInput is equilivent to AttachPlayerInput(person_entity, 0)