Forum begins after the advertisement:
[Part 21] Implementing the enemy system separately
Home › Forums › Video Game Tutorial Series › Creating a Rogue-like Shoot-em Up in Unity › [Part 21] Implementing the enemy system separately
- This topic has 3 replies, 2 voices, and was last updated 1 year, 4 months ago by
Terence.
-
AuthorPosts
-
September 9, 2024 at 6:26 pm #15797::
Hello,
I’m a beginner, I start the serie initialy to implemement only the enemy system. I thought this system and the others parts was separate, so I skiped some parts, that was my mistake because all the codes are connected with themselves and now I’m trying to fix all the bugs I have. I watched 3 times almost all the videos but I’m still missing some parts. Can you help me please ?
Event Manager
Inside the “Event Manager” on this code :<code>if(e.cooldown <= 0){ //Select a random player and reset the cooldown e.data.Activate(allPlayers[Random.Range(0, allPlayers.Length)]); e.cooldown = e.data.GetSpawnInterval(); <------ here : Where is the GetSpawnInterval ? }</code>I have this error : Error CS1061: ‘Event_Manager.Event’ does not contain a definition for ‘GetSpawnInterval’ and no accessible extension method ‘GetSpawnInterval’ accepting a first argument of type ‘Event_Manager.Event’ could be found (are you missing a using directive or an assembly reference?)
On the Spawn_Data I have this function.
For the others, I’ll continue to try to resolve by myself and mybe I’ll go here later If I still can’t find the solution.
Thank you
September 9, 2024 at 10:24 pm #15800September 10, 2024 at 3:36 pm #15810::Thank you, I’m done. It was probably because I didn’t have all the codes done. I first tried to only add the portions of codes missing to fix the bugs but that didn’t work, so I follow all the tutorials trying to complete the codes. I remove all the obsoletes codes and now I’m trying to implement them on the game. But as the game was updating, for now it still don’t work. That’s totaly my mistake, your tutorials are very clear, instructives and fun to follow.
For now, my game look like that : https://fromsmash.com/VampireSurvivor (link availible until 24.09.2024)
My weapon is upscaling by 5 I don’t know why. I can’t see for now the upgrading weapons ui and my inventory, stats, weapons, passives and items don’t work.
I’m still happy and glad to have a good serie like that so thank you.
has upvoted this post. September 11, 2024 at 4:34 pm #15811 -
AuthorPosts
- You must be logged in to reply to this topic.