One of my characters needs some help... My character needs to physically hit his enemies. For that purpose I have created a transparent bullet. However, is it possible to establish a range for the bullets? Example: I want the hit (bullet) being able to be effective only within a certain range (in pixels, maybe?) Now, he's basically throwing a punch on the left screen and the enemy dies on the right side... not cool
ok... I did crack my head a bit and here is the solution I found. Hopefully can be of use to somebody else with the same issue. 1. I create a transparent ENEMY - I made health and damage indestructible; - with collision AND kill player option (so it's able to absorb the bullets) - movement "fixed" object type "enemy" (so I can carry it along) 2. I connect this enemy to the PLAYER at the max distance of the bullet 3. The bullet (animation) is also a transparent PNG 4. When the real enemy enters within range THEN this one gets the hit and not the "shield"
I have this for a game also, this method works fine until I use portals, and then it disconnects - making this system not workable for what I want to achieve. If you could expand on this it would be great.