Jump to content

  • Log In with Google      Sign In   
  • Create Account

kburkhart84

Member Since 30 Jun 2004
Online Last Active Today, 12:49 PM

Posts I've Made

In Topic: Can't get enemy shoot at a certain point in game maker studio

26 May 2016 - 05:21 PM

I'm not sure.  Unless there is a mistype or something it should work.  You can send me the file again if you want.


In Topic: Can't get enemy shoot at a certain point in game maker studio

25 May 2016 - 06:07 PM

Yup, your problem is basically duplicated code.  On your obj_plane, you are getting the error, complaining about variables that haven't been created.  You created those variables on the obj_controller_plane object, and it appears that you have your code there as well, so you need to take it out of the obj_plane object.

 

Also, if you want to access those variables from your plane controller object on some other object, similar to what you do for the bullet object, you need to access it by object name.

vspeed = obj_controller.speedarray[obj_controller.difficulty];

 

See how you access variables on the obj_controller object from the obj_bullet object?  That is also what I don't see anywhere on the obj_plane object, and so you need to access variables on other objects the same way.


In Topic: Can't get enemy shoot at a certain point in game maker studio

24 May 2016 - 09:35 PM

Either 1, you misstyped the variable name, 2, you somehow put the events in two different objects(I've done that on accident myself), or 3, the error isn't what you think it is.  Can I see the error?

 

Better yet, if you want to, you can send me the gmz file.  I actually installed GMStudio.


In Topic: Can't get enemy shoot at a certain point in game maker studio

23 May 2016 - 05:31 PM

Run it in the debugger, and put a watch on that difficulty variable.  Or, you could put in the draw event of the controller object to draw to the screen the value of the variable.  I think the function is called draw_text(), and you specify x/y and the text you want to draw.  You can only put it in the draw event though.  This will let you see while the game is playing what the variable is.


In Topic: Can't get enemy shoot at a certain point in game maker studio

22 May 2016 - 09:37 PM

If you are setting the counter to 6, then it is going to be upgrading the difficulty really quick, as 6 steps happens in a tenth of a second at 60 room speed.  You need to multiply by 3600 to get to minutes.  So for 1 minute, you need to set the counter to 3600 steps.


PARTNERS