gmaker56 Wrote:As you may have seen I'm making a Adventure game with no guns. Can you guys tell me how to take out the weapons? Thanks
As I said above,"I'm making a Adventure game" visit another fourm for more info!
http://www.idevgames.com/dim3/showthread.php?tid=1983
One thing to note is that weapons don't really have to "be" weapons -- they are just things that are mostly used as weapons. I'd remove all weapons except the hammer, and then eventually turn that into just a hand and remove it's ability to do damage.
Why? Because then you can have a hand that can "click" things, i.e., interact with objects in the map. This would be good for an adventure game.
To remove weapons, check out player.js. The weapons are added by looking through an array in the script. Right at the top of the script:
Code:
var weapons=new Array(7);
weapons[0]=new playerWeapon('Hammer','Hammer','Hammer Icon','Hammer',false,false);
weapons[1]=new playerWeapon('Pistol','Pistol','Pistol Icon','Pistol',true,true);
weapons[2]=new playerWeapon('Machine Gun','AR14','Machine Gun Icon','Machine Gun',true,true);
weapons[3]=new playerWeapon('Ray Gun','Ray Gun','Ray Gun Icon','Ray Gun',false,true);
weapons[4]=new playerWeapon('Missile Launcher','Missile Launcher','Missile Icon','Missile Launcher',false,true);
weapons[5]=new playerWeapon('Mine','Mines','Mine Icon','Mine',false,true);
weapons[6]=new playerWeapon('Shock Launcher','Shock Gun','Shock Cube Icon','Shock Launcher',false,true);
Chop that up to:
Code:
var weapons=new Array(1);
weapons[0]=new playerWeapon('Hammer','Hammer','Hammer Icon','Hammer',false,false);
And you'll just have the hammer. This takes the array, makes it have 1 "spot" instead of 7, and sets the first spot (0) to the hammer.
[>] Brian