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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15797
    Boby
    Participant
    Helpful?
    Up
    0
    ::

    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 :

    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 ?
    }

    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

    #15800
    Terence
    Keymaster
    Helpful?
    Up
    0
    ::

    Boby, can you share your entire EventManager code?

    #15810
    Boby
    Participant
    Helpful?
    Up
    1
    ::

    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.

    #15811
    Terence
    Keymaster
    Helpful?
    Up
    0
    ::

    Thank you Boby. Glad you are enjoying the series.

    Feel free to reach out if you run into any issues!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: