1
Coding / Re: Small GM Error
« on: March 04, 2014, 01:47:27 am »
Ah, well that was simple enough, I got it working now, thanks!
switch ctrl_menu.slot[16, 0] {
case global.item[15, 1]: scr_weapon_bow() break;
}
It's giving me the error: Case argument should be a constant.I was getting the same problem, but after making the following changes:Thanks, got it fixed.Code: [Select]HTML Changes:
a. Gave your logo+navigation table these attributes: 'id="left"', 'width="260"'.
CSS Changes:
a. Replaced these properties of '#page': 'margin:0 auto;' replaced with 'float:left;'
b. Gave '#left' this property: 'margin-left:81px;'.
It now looks like the image below. Hopefully an improvement. It still does drop the page div down below the navigation table when resized enough, but at least it keeps the borders normal. It looks similar in IE6, IE8, Opera(v.10.?), Safari(v.?), and Firefox(v.3.5.16).
In all seriousness, no one will be able to help you with just that little bit of coding. The problem might as well be somewhere else.
if place_meeting(x + 1, y, par_solid) ^^ place_meeting(x - 1, y, par_solid) {
hspd *= -1; // Reverse horizontal direction
}
Hspd is a custom variable used for their movement speed, they have the par_solid object as their parent just for testing, so they'll bounce off each other the same way they'd bounce off of a wall. The only other code involved is establishing [hspd = 1;] in the create event and adding [x += hspd;] in the step event.