Re: Strange class issue, bgt.

2019-08-01 Thread AudioGames . net Forum — Developers room : roelvdwal via Audiogames-reflector


  


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 subclassed from the same superclass, you could have an array of all living beings and in the spike loop you'd loop over that array and hit anyone in range. The way this would work is that you handle all keyboard input like moving, in the player class, maybe in a function like update. In the enemy class the update function could be much simpler and simply make the enemy move towards the player.

URL: https://forum.audiogames.net/post/452444/#p452444




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Strange class issue, bgt.

2019-08-01 Thread AudioGames . net Forum — Developers room : cmerry via Audiogames-reflector


  


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-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Strange class issue, bgt.

2019-07-31 Thread AudioGames . net Forum — Developers room : SkyLord via Audiogames-reflector


  


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@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector