Jump to content


rude guss

Member Since 16 Jun 2006
Offline Last Active May 25 2013 12:51 PM

Posts I've Made

In Topic: Awesome 2d Rts Engine (similar To Warcraft/strcft)

25 May 2013 - 12:50 PM

I found a bug/error I just wanted to report to you. Great job by the way I love the engine it is a really great example for what I am trying to do in my own rts. Here is the error and how to reproduce it.

 

 

ERROR in
action number 1
of Alarm Event for alarm 0
for object obj_projectile_clight:
 
Error in code at line 21:
           if (point_distance(next_target.x, next_target.y, targetx, targety)<chain_range)
                                          ^
at position 41: Unknown variable x

 

 

Place 1 friendly "villi" and one enemy unit in a new room and cast any of the spells. The multi-target spells error out with the unknown variable x - I have not altered your code, but I believe the error is because there is no next target.

 

Again thank you for making this it is really great. 

Thanks for reporting that, I'm not really too worried about that since it's only suppose to be an example spell to show how one might go about making something similar. I'm sure you've already fixed it, but for those wondering how, just write "if instance_exists(next_target)" above that line (line 21) where the error occurred.


In Topic: Awesome 2d Rts Engine (similar To Warcraft/strcft)

21 January 2013 - 06:52 AM

ERROR in
action number 1
of Mouse Event for Left Pressed
for object obj_button_unit_template:

Error in code at line 7:
   if obj_HUD.target.is_built = true
                     ^
at position 20: Unknown variable is_built


whats the problem? i dont understand... pls help!

What steps are required to reproduce this error. Also do not put the button to create units onto actual units (This will not work, and is what I think the problem your having is)

In Topic: Fog of War

19 January 2013 - 02:41 AM

I tried it out, but what are you able to do at the moment? I wasn't able to figure out how to build units. All the button on the fortress were just blank.

In Topic: Check my WHILE loop for me?

12 January 2013 - 08:17 AM

For your original code you posted, try putting an exclamation mark (!) behind the position_meeting function.

eg:
!position_meeting(blah,blah)

Never Mind, missread the code.

In Topic: GML Timer Loops Question

12 January 2013 - 06:50 AM

maybe just double check that you didn't use a uppercase 'T' (for timer) in the create event and a lower case 't' in the step event. Also try removing the 'var' keyword for the timer variable.