00:00
00:00
EyeBallTank
Working on Project Nortubel.
https://rentry.co/axmy9

READ MY RENTRY POST

Joined on 8/24/21

Level:
22
Exp Points:
5,264 / 5,380
Exp Rank:
9,382
Vote Power:
6.41 votes
Rank:
Civilian
Global Rank:
> 100,000
Blams:
0
Saves:
27
B/P Bonus:
0%
Whistle:
Normal
Medals:
32

FIXED: Got 2 problems with homing projectile shooting enemy

Posted by EyeBallTank - August 12th, 2024


FIXED NOW: 1st was with help from a /agdg/ anon, the other was me redoing the enemy from scratch.

Problem 1: How Do I make the seeking arrow work properly?

Arrow scene called GhalbeenArrow.

Ideally, I'd want the arrow to travel and chase the player when the enemy (Called HerrkoRedGhalbeen) shoots it.

The arrow would obviously disappear if hurting the player but also if touching the world.

(And I guess the Companion too if HerrkoRedGhalbeen seems the Companion with its Raycast, instead of the Player, if that distinction is needed.

Problem 2: The enemy can't flip properly when touching a well.

They start off moving to the right, which is normal.

But when they touch a well, they do not turn to the left and instead get stuck.

I remember having a similar issue with another enemy (RedJester) and I fixed it by recreating them, but if I recall, I think I did the same with the Ghalbeen and it didn't work.

I thought it had to do with how the collisions are placed in the enemy's scene but not sure if that's true.

Anyway, here's the script/scene pages on the game's Github.

https://github.com/EyeBallTank/PROJECT-NORTUBEL-main-ish/blob/main/src/enemies/herrko/HerrkoRedGhalbeen.gd

https://github.com/EyeBallTank/PROJECT-NORTUBEL-main-ish/blob/main/src/enemies/herrko/HerrkoRedGhalbeen.tscn

https://github.com/EyeBallTank/PROJECT-NORTUBEL-main-ish/blob/main/src/level_hazards/herrko/GhalbeenArrow.gd

https://github.com/EyeBallTank/PROJECT-NORTUBEL-main-ish/blob/main/src/level_hazards/herrko/GhalbeenArrow.tscn


Edit:

Someone helped me fix the arrow.

But the Ghalbeen's inability to turn around is still there.


Tags:

Comments

Comments ain't a thing here.