Jump to content


k5000

Member Since 18 Feb 2010
Offline Last Active Mar 04 2012 03:19 AM

Topics I've Started

the virus scanner

19 May 2011 - 12:57 PM

What program does yyg use to virus scan uploaded files?

silly direction problem

23 April 2011 - 09:16 PM

So I have a problem with bullet generation on one of my games in progress. The direction of the bullet when it's generation is based on the direction of the player at the time (if you're moving left, you shoot left, etc.) I noticed the only direction the bullets ever went was to the right, because no matter which direction the player character was going, the direction variable was only ever set to 0.

So yeah, this is a bit embarrassing. Can someone tell me why this might be happening and what I'm supposed to reference if 'direction' doesn't seem to map to 'the direction the player is going at the moment?'

included files

27 March 2011 - 11:31 PM

I want to be able to import all the files in a directory as resources if a key in the ini file is set to true. These files will not be of any specific type, so there's no way to know at runtime what the names or extensions would be. I know how to include files myself through the UI but how do I include and delete files using gml?

Also, is there a way to refer to them internally (like an array), without using filenames?

Thanks.

store files of a type in an array

25 March 2011 - 05:50 PM

If I wanted to find all .pch files in the game directory and store them in an array, how would I do that?

I found the file import functions in the help file but I'm uncertain about how to use them in a loop.

Nesting parents

28 December 2010 - 10:11 PM

I have a physics_parent object I want for all objects to follow my collision scripts (these work because I'm moving them from another game.) This is fine for everything except enemies, which I want to behave using the physics scripts as well, but already have to have the parent enemy_parent.

So I tried making the parent of enemy_parent to be physics_parent but none of the variables declared in physics_parent appear in the enemy objects. Is it possible to nest parents like this and if so how do I get everything from each generation of parentage to work on an object?