{"author_name":"squigglez","cat":"LD #35","comments":[{"author_name":"Grahhhhh","time":"April 16, 2016 4:55 pm","epoch":1460843700,"text":"Not familiar with gms or the syntax.  Was waiting to see if other people weighed in on this&#8230; Any chance you need to add a space to the until line in wolf?<br \/>\n until (wolf = 0);<br \/>\n Also have you checked the value of wolf once assigned?  If there&#8217;s any possibility of it being 0 or lower when entering the loop, the loop is only checking for = 0, what&#8217;s the harm of changing it into =&lt;?  <img src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" alt=\":)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/>","spam":"N"},{"author_name":"Squid","time":"April 16, 2016 4:56 pm","epoch":1460843760,"text":"I&#8217;m not sure what GM:S is but does it help if the line:<br \/>\n until (people = 0);<br \/>\n Is changed to:<br \/>\n until (people == 0);","spam":"N"},{"author_name":"squigglez","time":"April 16, 2016 5:06 pm","epoch":1460844360,"text":"edit: thanks to some glorious people on the IRC, the bug is fixed!","spam":"N"}],"epoch":1460842680,"likes":0,"metadata":{"p_key":"7267","p_author":"squigglez","p_authorkey":"500167","p_urlkey":"42699","p_title":"Bug In My Game","p_cat":"LD #35","p_event":"LD35","p_time":"1460842680","p_likes":"0","p_comments":"3","p_status":"UPD5","us_key":"500167","us_name":"squigglez","us_username":"squigglez","event_start":"1460678400","event_key":"33","event_name":"LD35"},"text":"<p><iframe width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/uOgYErK4gAo?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n <p>I appear to have made an infinite loop with my spawner. If anyone knows GM:S, I could use a little help. Here is my Object Info:<\/p>\n <p><b>Information about object: obj_spawner<\/b><\/p>\n <div>Sprite:<br \/>\n Solid: false<br \/>\n Visible: true<br \/>\n Depth: 0<br \/>\n Persistent: false<br \/>\n Parent:<br \/>\n Children:<br \/>\n Mask:<\/div>\n <div>No Physics Object<\/div>\n <div>Create Event:<\/p>\n <pre>execute code:\n \n randomize()\n wolf = irandom_range(1,10)\n \n people = irandom_range(1,20)\n \n if (!object_exists(obj_player)){\n instance_create(x,y,obj_player)\n }\n <\/pre>\n <\/div>\n <div>Step Event:<\/p>\n <pre>execute code:\n \n do\n {\n wolf -= 1\n were = instance_create(x,y,obj_werewolf)\n were.x = (irandom(1920))\n were.y = (irandom(1080))\n }\n until (wolf =0);\n do\n {\n people -= 1\n ppl = instance_create(x,y,obj_person)\n ppl.x = (irandom(1920))\n ppl.y = (irandom(1080))\n }\n until (people = 0);\n <\/pre>\n <\/div>","time":"April 16th, 2016 4:38 pm","title":"Bug In My Game"}