Re: Strange class issue, bgt.
Your code is very hard to read. If you'd do all the work in the spikeloop, I think the problem would be solved. I don't see the need for the spike hit me variable, either. Even better would be if you used classes way more. example: if enemies and player were
Re: Strange class issue, bgt.
You'll want to break out of the loop after the spike spikes you. Also, you may probably want to give the spikes a Z variable.
URL: https://forum.audiogames.net/post/452439/#p452439
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin
Re: Strange class issue, bgt.
I'd maybe help you if forum would let me post the code.It gives me the i can't be opened within it self or something like that error.
URL: https://forum.audiogames.net/post/452411/#p452411
--
Audiogames-reflector mailing list
Audiogames-reflector
Strange class issue, bgt.
Hello,So at the end of my post is the code for the spikes, but the way they work is that when they're not active, they start a timer. When this timer elapses, they become non active again.While active, if you walk within 2 tiles of them, you get skewered