06-05-2024, 05:07 AM
That 3d thing
|
06-05-2024, 08:57 AM
(05-31-2024, 09:00 PM)Marcus Wrote: Here's step 6. ... STEP 6. What if the enemy can shoot you ? click image to zoom in Enemy shoots randomly, the bullet goes at the same direction as the enemy movement. click image to zoom in When the enemy moves toward you, they begin to shoot you. Question : How to use collision detection function when the enemy's bullet hit you at certain area ? Mine is still error .... You may answer when you have free time, don't worry, it's not urgent Code: '----------------
06-05-2024, 05:40 PM
Can't check the code right now. But if you are in the enemy bullet's Update function, just call "if .CollidesWith(vPlayer)", if your player is in a visible variable named vPlayer.
06-06-2024, 12:37 AM
(06-05-2024, 05:40 PM)Marcus Wrote: Can't check the code right now. But if you are in the enemy bullet's Update function, just call "if .CollidesWith(vPlayer)", if your player is in a visible variable named vPlayer. Thank you, now it's working ! .CollidesWith(vPlayer) is working perfectly click each image to zoom-in Code: function CreateEnemyBullet(id, img, x, y, z, dx, dy, dz)
06-07-2024, 11:43 AM
THE STARGATE is released now !
https://naalaa.com/forum/thread-140.html It was developed based on Marcus' tutorial on 3D Thing and discussions in this thread "That 3d thing".
06-07-2024, 10:41 PM
Nicely done... the only problem I had was that I ran out of bullets... lol
Logic is the beginning of wisdom.
06-11-2024, 01:59 AM
(06-07-2024, 10:41 PM)johnno56 Wrote: Nicely done... the only problem I had was that I ran out of bullets... lol I should put a puzzle in the game to solve and return bullets as your reward so that you may reload your weapon with more bullets and powers ... let me think about it.... perhaps in the next sequel .... The Stargate II
06-15-2024, 08:27 AM
I'm done with the code for the final part of this tutorial, but now I have lots of confusing text to write. Uploaded a video to youtube.
06-15-2024, 10:23 AM
Aww, man! They shoot back? Multiple keys? You mean we have to "remember" where all the locked doors are; search for keys; collect treasure AND fight off a bunch of "possessed" pumpkins?? COOL... sounds like fun!
Logic is the beginning of wisdom.
06-15-2024, 01:33 PM
This looks amazing Marcus. Not one of my favourite genres to be honest, but technically there is so much to admire.
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 4 Guest(s)