- Game Maker Community
- → Viewing Profile: Posts: noobletherder
noobletherder
Member Since 02 Jun 2008Offline Last Active Jun 12 2011 10:06 PM
Community Stats
- Group New Member
- Active Posts 105
- Profile Views 624
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
none
Posts I've Made
In Topic: Battletankz - Version 2 Out Now!
19 April 2010 - 09:48 PM
Good graphics, i like it. I happened to notice that the heads of the tank tend to lag a little. To fix that you can put the code that moves the head of the tank in the end step. I will be back later to see how the game has progressed =).
In Topic: Weapon Pick Up
04 February 2010 - 02:15 AM
Oh wow, this is very similar to a technique for gun switching I used for one of my games. I came to a quick conclusion when you said
Now I can almost for sure say that it is an array location issue. What I mean is...
weapon[rifle,...] in the array rifle might equal 3. You may have a problem with the variable that controls the x location in that array; when trying to pickup the flamethrower (for the sake of example flamethrower = 4), instead of accessing weapon[4,...] where the flamethrower is, it accesses weapon[3,...] where the rifle is. So again what I am saying that the variable for the x location in the array is not being set equal to what you want it to. In this case I suggest looking around your code for something that could be setting the x location variable to something unwanted
OR (the less likely case)
Since you did say you were new to game maker, I am going to assume you made a novice mistake such as having
well in this case I am going to tell you now that when using arrays, it should look something like this array[x,y] where x and y are variables (having any name you want; which hold numerical values) or numerical values (1,2,3,4...).
So when you use the above code, game maker thinks "flamethrower" and "melee" are variables, and since I see no code setting them to any value game maker will think you are saying something like this.
If you need more help with arrays, I suggest you look here http://gmc.yoyogames...p?showtopic=105. It's a great tutorial.
my current_weapon is a flamethrower and my 2 other available weapons is a grenade launcher and a shotgun, the weapon on the floor is a rifle and I'll replace my flamethrower with the weapon on the floor BUT instead a get a machine gun instead!?
Now I can almost for sure say that it is an array location issue. What I mean is...
weapon[rifle,...] in the array rifle might equal 3. You may have a problem with the variable that controls the x location in that array; when trying to pickup the flamethrower (for the sake of example flamethrower = 4), instead of accessing weapon[4,...] where the flamethrower is, it accesses weapon[3,...] where the rifle is. So again what I am saying that the variable for the x location in the array is not being set equal to what you want it to. In this case I suggest looking around your code for something that could be setting the x location variable to something unwanted
OR (the less likely case)
Since you did say you were new to game maker, I am going to assume you made a novice mistake such as having
weapon[melee, bul_spr] = spr_melee; weapon[flamethrower, bul_spr] = spr_fire;that as your actual code.
well in this case I am going to tell you now that when using arrays, it should look something like this array[x,y] where x and y are variables (having any name you want; which hold numerical values) or numerical values (1,2,3,4...).
So when you use the above code, game maker thinks "flamethrower" and "melee" are variables, and since I see no code setting them to any value game maker will think you are saying something like this.
weapon[0, bul_spr] = spr_melee; weapon[0, bul_spr] = spr_fire;This is because, since melee and flamethrower are not set equal to anything, they both hold a value of 0. And when game maker tries to access weapon[rifle, ...] it is really accessing weapon[0, ...] which explains the random gun thing (since you set all of the guns and things to weapon[0,...]).
If you need more help with arrays, I suggest you look here http://gmc.yoyogames...p?showtopic=105. It's a great tutorial.
In Topic: Can I Restore My Game From .g61 Format?
04 February 2010 - 01:54 AM
I have a decompiler that can turn an exe to gm
Probably shouldn't share that, however; smileyface1505 is right. But then again .g61 is not a file type i'm familiar with. Just a thought though, did you try the decompiler on the .g61. You never know, it might just be a fancy .exe.
In Topic: Outbreak(redux)fast-paced Zombie Tds
25 November 2009 - 09:01 PM
This game is pretty sweet. It's nice to see a zombie game that isn't lazily made. (And an AI that isn't completely retarded) I like how you actually took the time to make dieing graphics, lets me know that you're trying. I'm likeing the game so far, keep it up =).
In Topic: Fatal Tournament
24 November 2009 - 03:28 PM
Still one of the better games in GM. I'm loving the final game.
- Game Maker Community
- → Viewing Profile: Posts: noobletherder
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content