A
anthropus
Guest
Hi all. Im still fairly noob but learning more everyday.
In some (melee/projectile) attack tutorials they say to use a collision check event to initiate the code of dealing damage etc, and in others they say to put that code in the step event.
which is better [for what purposes] and why?
I've been following a lot of these tutorials in my practice game so my code is a combination of the 2 (collision check event and step event) and its getting sloppy and buggy. I want to have a standard way of handling the attacks, but Im not sure which to go with: collision event or step event.
I was thinking I would settle for putting all the "attack/hit" code in the step event bc the weapons dont exist until the actual attack actually takes place and it generally seems to work better for me than collision event for some reason, but I dont want to decide until I hear from other more evolved Homos
thanks!
In some (melee/projectile) attack tutorials they say to use a collision check event to initiate the code of dealing damage etc, and in others they say to put that code in the step event.
which is better [for what purposes] and why?
I've been following a lot of these tutorials in my practice game so my code is a combination of the 2 (collision check event and step event) and its getting sloppy and buggy. I want to have a standard way of handling the attacks, but Im not sure which to go with: collision event or step event.
I was thinking I would settle for putting all the "attack/hit" code in the step event bc the weapons dont exist until the actual attack actually takes place and it generally seems to work better for me than collision event for some reason, but I dont want to decide until I hear from other more evolved Homos
thanks!