PlaceholderGames / 2016-InfiniteReplayGame

A 2D post-apocalyptic run and gun game with a significant resource management element.
0 stars 0 forks source link

Make the Melee weapons work. #11

Closed WilliamAkins closed 7 years ago

WilliamAkins commented 7 years ago

Sorry for the late issue submit, forgot to write this one.

Can you make it so the player can use a melee weapon by clicking their mouse anywhere on screen. It will then detect whether the weapon was near enough to an enemy to deal damage and if it was will indeed deal some form of damage. The weapon should also have an attack speed which can be modified based of which weapon is currently equipped.

Due: Monday 31st October

simongoodfellow commented 7 years ago

ok working on it now.

simongoodfellow commented 7 years ago

Will could you show me where the weapon code is as i need to make it so you can switch weapons. to then allow me to make melee weapons.

WilliamAkins commented 7 years ago

Ok, I did it for the pistol weapon. I can show you myself if you cannot find it. It is located in the event sheet for the pistol actor.

simongoodfellow commented 7 years ago

i,ve gotten weapon switching working correctly. i shall now need to work on swinging the mop/melee weapon.

simongoodfellow commented 7 years ago

i have finished making the weapon swing correctly. it currently does it instantly and a bug with the weapon switching is that it takes 2 attempts to equip the melee weapon. no damage is being done as the damage code isn't in this current version of the code.

simongoodfellow commented 7 years ago

i have uploaded it on my branch named as AG_weapon_switch

simongoodfellow commented 7 years ago

mop now works correct and enemys drop scrap on death that the player can collect by standing near it

simongoodfellow commented 7 years ago

fixed bug where mop hit multiple times in a second leading to one hit kills of enemys.