Melee Weapon hardcoded in 4.1?

nroflmao

New member
I am trying to load the Sword Vertical and Horizontal slash into Game Object slots 1 and 2 as per 4.0.x but it seems it has no effect. The 4.1.0 adventure tutorial seems to skip over how the sword is mapped, and can't find it in any of the other tutorials either.
How is the melee weapon (not the magic shooter) supposed to be mapped in 4.1.0?
Best I can tell, it is hardcoded to a certain sprite location on the Game Object Bitmap and I can't figure out how to change it.
Anyone else run into this problem?
 

dale_coop

Moderator
Staff member
Yep the basic modules uses a sprite based weapon. You can change the index of the weapon tile via a User Constant:

2019-01-12-17-56-04-Project-Settings.png


It would be doable to change for object based weapon (like in the 4.0) but would required to deactivate some code in the Pre Draw and maybe Extra Controll Read control scripts.
 
Top Bottom