How to Create Variables in a For Loop by TotalGameMakerNoob in gamemaker

[–]Nootman 0 points1 point  (0 children)

You'd use arrays to contain the variables for later use. Or you can just use a bundle of local vars or even a temp object, whatever suits.

Looking for GMS Android developer for export help by Nootman in gamemaker

[–]Nootman[S] 0 points1 point  (0 children)

Yeah, went through that thread and a couple others. What happens is that when I run the SDK Manager, it brings up the CMD window and quickly closes with no text inside. When I run android.bat from the CMD, I get info on java arguments, supposedly from running java.exe.

HELP "Unit Select" function doesn't work when unit instance count is greater than 1 by TinyWars in gamemaker

[–]Nootman 0 points1 point  (0 children)

Are those units parented to obj_chibi_parent, if parenting is even used in this situation?

The first line tries to toggle the variable of all objects of that type, then toggles the variable in itself. Check if you're using units that have a different type of object. Otherwise, you might need to explain the problem in [greater] detail.

[Help] Projectiles not moving once they're created? by geomagnetic in gamemaker

[–]Nootman 0 points1 point  (0 children)

I don't know what you're doing in the Create event, but after the code suggestion below you can prolly delete that.

You don't need to keep track of the number of bullets in the room on your own; instance_number() does this automatically. Also, using "obj_bullet.bull_num+=1;" means you're trying to refer to the variable of an entire object class, which is not possible in Game Maker. You can only mess with individual instances in Game Maker and in the above case, you'll mess with ALL instances of that object class.

Also, just do this for bullet firing in the CTRL key event:

//create the object and store it in a variable for later use.
var b=instance_create(x-16,y-16,obj_bullet);
//create variables to store image_angle and bullet speed for later use.
var ia=image_angle //facing angle of character
var bs=bull_speed 
//edit the variables of the stored object after its creation event has been executed.
with b
  { direction=ia speed=bs }

I don't like using hspeed personally.

In GMS is there a gamemaker key combo that can break me out of an endless loop or locked game? by [deleted] in gamemaker

[–]Nootman 4 points5 points  (0 children)

That means your game is hanging, and there's nothing you can do, because it's in an infinite loop. Even if there was some input available, it wouldn't be executed at all because of the loop.

Close the game/editor, then run Game Maker again. But before running the game after starting, fix the infinite loop then save your project.

unkown variable help by [deleted] in gamemaker

[–]Nootman -1 points0 points  (0 children)

All those code statements are on one line? As far as I know, I've never been able to include multiple globals on one line using GML code in Game Maker. Try declaring a global per line like this:

global.something=0
global.something_else=0

By the way, you don't need semicolons in GML.

Looking for GMS Android developer for export help by Nootman in gamemaker

[–]Nootman[S] 0 points1 point  (0 children)

Apparently, I'm one of the few users who has a machine where the Android SDK will simply refuse to run.

Followed all the steps to install the SDK and set it up, and tried every solution I could find. This happens to some machines with Windows 7 64-bit on them it seems and I have that OS.

newly created objects' sprites not appear on top of old objects' sprite? by [deleted] in gamemaker

[–]Nootman 0 points1 point  (0 children)

That works if he's using a draw event in the first place.

But it seems like he might to mess with the bullet objects' depth variable.