Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
return movement
#7
(05-21-2024, 07:44 AM)kevin Wrote:
(05-21-2024, 04:37 AM)kevin Wrote: Phoenix!!!! I just loved the arcade version of this game. I actually started to code a clone of this a few months ago, but abandoned it when I lost interest (this happens a lot Smile ).
I'll try to find it a little later in case it helps - I'm pretty sure it had the enemies diving and returning to thier original positions that you were asking about.
All theĀ  best - Kevin.

Here's the example I referred to above. It uses the "return" code that Marcus provided back in March. It makes 3 of the invaders dive down, and then return to their original positions - you can change the number of diving invaders in lines 121 onwards.

Please bear in mind that this is by no means a finished program - very much a work in progress. Any questions, please ask and I will try to answer them.

Thanks for the example Kevin. Smile

But it is too complicated for me and I can't understand it, the only way I could understand it would be to create an example where there is only one enemy, who after a few seconds moves down and after a few seconds returns to his initial position.

For the code to be as simple as possible, it would be best to only have the code of that enemy and nothing else, this way you could study more clearly what the code does. No matter how much time passes, I still don't understand well when there is a lot code, sorry for my clumsiness.
Reply


Messages In This Thread
return movement - by aliensoldier - 05-20-2024, 02:47 PM
RE: return movement - by Marcus - 05-20-2024, 03:27 PM
RE: return movement - by aliensoldier - 05-20-2024, 08:13 PM
RE: return movement - by kevin - 05-21-2024, 04:37 AM
RE: return movement - by kevin - 05-21-2024, 07:44 AM
RE: return movement - by aliensoldier - 05-21-2024, 08:59 PM
RE: return movement - by kevin - 05-22-2024, 05:13 AM
RE: return movement - by aliensoldier - 05-22-2024, 02:02 PM
RE: return movement - by johnno56 - 05-21-2024, 10:28 AM
RE: return movement - by kevin - 05-22-2024, 04:28 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)