Procedural Generation: Endless Runner Unity Tutorial (Updated 2023)

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024

ความคิดเห็น • 53

  • @msx9037
    @msx9037 3 หลายเดือนก่อน +2

    Thanks for the tutorial!
    ---
    If anyone have already have forward running character, or you don't want the platforms that sliding backward, you can try this:
    Mine SectionTrigger from this tutorial script looks like that:
    public class SectionTrigger : MonoBehaviour
    {
    public float moveStep; //lenght of platform offset on trigger = full exact lenght of platform(fills from inspector)
    public int stepCount = 0; //multipler for each next offset(counter of triggers)

    public GameObject roadSection;
    void OnTriggerEnter(Collider other)
    {
    if(other.gameObject.CompareTag("Trigger"))
    {
    stepCount += 1;
    Instantiate(roadSection, new Vector3(0, 0, moveStep * stepCount), Quaternion.identity);
    }
    }
    }

  • @marijapopovic8173
    @marijapopovic8173 8 หลายเดือนก่อน +4

    Girl I love you, you know how to explain things

    • @RigorMortisTortoise
      @RigorMortisTortoise  7 หลายเดือนก่อน +2

      Thank you so much! 🥹 Glad I could help

  • @KJ7JHN
    @KJ7JHN 6 หลายเดือนก่อน +2

    This is a great tutorial Holly. Glad I found it. Thanks!

  • @EpikF1shy
    @EpikF1shy 8 หลายเดือนก่อน

    Your videos are really nice and helpful, I believe the curve World effect helped me solve a problem in my game. But actually in Subway Surfers the character rather moves instead of the world. I’ve been able to move the camera in the game away from the character and can confirm that the player rather moves which is what I’ve been doing in my game. But this tutorial was actually really interesting, good vid.

  • @Rafix
    @Rafix 3 หลายเดือนก่อน

    awesome video!

  • @yaroslavkelemen3647
    @yaroslavkelemen3647 9 หลายเดือนก่อน +1

    Thnaks a ton for this tutorial! It really helped me out

  • @Deepak-l3t5u
    @Deepak-l3t5u 6 หลายเดือนก่อน

    thankyou sister i am from india i am just a beginner but i can able to understand u r english and u r explanation is very very good love from india

  • @user-qd6vh7qt5i
    @user-qd6vh7qt5i 3 หลายเดือนก่อน

    Perfect for my Death Star Run idea

  • @kiryrumirz1615
    @kiryrumirz1615 9 หลายเดือนก่อน

    I was needing this so much... I love your channel ;; omg

  • @hefferwolff3578
    @hefferwolff3578 4 หลายเดือนก่อน

    Wonderful tutorial!!!

  • @Zephyrs_Domain
    @Zephyrs_Domain 10 หลายเดือนก่อน

    Great tutorial as always, cool to learn how things work! ❤ 🔥

  • @r.f886
    @r.f886 7 หลายเดือนก่อน

    Hi from near future, thanks for the good tutorial 👍

  • @FromPc-bj9ew
    @FromPc-bj9ew 3 หลายเดือนก่อน

    thank you mam you are best Developer

  • @motobike5Dev
    @motobike5Dev หลายเดือนก่อน

    Hey, i have a problem. i have a section that has a box collider and when the player triggers the box collider, the box collider will deactivate and spawn a new section, but after it spawns a section, the new section it spawned doesn't work anymore, in which the box collider in the new section isn't activated, this is because the prefab is using itself and changes itself, but i don't want that to happen and i don't know how to fix it.

  • @bobwonch
    @bobwonch 9 หลายเดือนก่อน +2

    When the road section is destroyed I get a MissingReferenceException
    MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it.
    Your script should either check if it is null or you should not destroy the object.
    If I check for null then my SectionTrigger stops working.

    • @ambroisegalle7110
      @ambroisegalle7110 7 หลายเดือนก่อน +2

      In the SectionTrigger script you need to drag and drop the prefab from the Project folder, and not from the scene, into the public section

  • @belgischepommes7466
    @belgischepommes7466 7 หลายเดือนก่อน

    ty 💫

  • @VeryTori
    @VeryTori 6 หลายเดือนก่อน +1

    When I add the RigidBody to the road prefab, the sections push each other up or down if you look at the scene from a side view. How can I fix this?

    • @phoquegames
      @phoquegames หลายเดือนก่อน

      In the rigid body component under constraints you can disable certain axis rotations or movements

  • @Mcjagger2023
    @Mcjagger2023 7 หลายเดือนก่อน

    Can we get a possible update/re-go over of this? a bit slower, more in depth/detailed? with better steps some feel like they were skipped over. I tried this and the script just seemed to not work at all for me.

  • @akRedmage
    @akRedmage 4 หลายเดือนก่อน

    Do you have any issues with Z-fighting when you spawn the prefabs over each other, or is that something you fix later?

  • @simonsobo4644
    @simonsobo4644 10 หลายเดือนก่อน

    Just underneath the heart on your icon you need to put the letter "S" because you are SUPER!!!

    • @RigorMortisTortoise
      @RigorMortisTortoise  10 หลายเดือนก่อน

      Glad you liked it!

    • @simonsobo4644
      @simonsobo4644 10 หลายเดือนก่อน

      @@RigorMortisTortoise Like is such a strong word actually, let's just say I LOVED IT!

  • @DominicRyanOsborne
    @DominicRyanOsborne 2 หลายเดือนก่อน

    Train of thought
    How to apply this to rimworld,
    A planet like venus with a long day,
    Wait what about that planet in riddick that was a blazing inferno and you had to keep moving to avoid death
    So like procedurally generated surface on extremely slow rotation planet but the topography does repeat eventually.

  • @NooB20.0
    @NooB20.0 4 หลายเดือนก่อน

    Can you add random cat generate on? pls

  • @SAJJAD-dh3xp
    @SAJJAD-dh3xp หลายเดือนก่อน +1

    How do we fix gap between new tiles just instantiated?! And im increasing speed but gap appear

    • @hawwka
      @hawwka 27 วันที่ผ่านมา

      public class GroundMover : MonoBehaviour
      {
      public List Platforms = new();
      public float ShiftOffset = 13.68f;
      public float Speed = 1f;
      private Vector3 moveDirection = Vector3.back;
      private void Update()
      {
      foreach (var platform in Platforms)
      {
      var pos = platform.transform.position;
      pos += moveDirection * (Speed * Time.deltaTime);
      if (pos.z < -ShiftOffset)
      {
      pos = new Vector3(pos.x, pos.y, pos.z + ShiftOffset * 2);
      }
      platform.transform.position = pos;
      }
      }
      }

    • @SAJJAD-dh3xp
      @SAJJAD-dh3xp 26 วันที่ผ่านมา +1

      @@hawwka yo bro 💀 thank uuu man

  • @hey1tsla
    @hey1tsla 4 หลายเดือนก่อน

    i want to , like generate new platforms rather than same one ? can anyone help

  • @tgerm
    @tgerm 7 หลายเดือนก่อน

    The destroy wall is not working for me

  • @Haha-vw3ff
    @Haha-vw3ff 7 หลายเดือนก่อน

    Whenever I put a rigid body on my prefab it makes the box trigger, trigger twice and it spawns two levels.

    • @Haha-vw3ff
      @Haha-vw3ff 4 หลายเดือนก่อน

      @@Mo-zm7eo This was a long time ago so im not sure but I think it was because the character controller and rigid body both have a collision capsule on them so it triggers it twice.

  • @iangraham6730
    @iangraham6730 7 หลายเดือนก่อน

    Are you going to continue with this??

  • @user-xv8xl6xj7n
    @user-xv8xl6xj7n 3 หลายเดือนก่อน

    Is creating and destroying paths okay and not overloading my game, compared to using object pooling?

    • @ksmleopard6890
      @ksmleopard6890 2 หลายเดือนก่อน

      I would rather use object pooling, creating and destroying paths would not be ideal if you would want to speed up the game later on. It would cause a lot of GC allocation and might cause lag spikes

  • @lemonsarejuicy8817
    @lemonsarejuicy8817 9 หลายเดือนก่อน

    i copied the code and it doesnt work :( ive watched it twice and still cant do it

    • @MaskedYemeni1
      @MaskedYemeni1 5 หลายเดือนก่อน

      from were did u copy?

    • @lemonsarejuicy8817
      @lemonsarejuicy8817 5 หลายเดือนก่อน

      @@MaskedYemeni1 this was long ago I’ve done it now

    • @MaskedYemeni1
      @MaskedYemeni1 5 หลายเดือนก่อน

      @@lemonsarejuicy8817 ye but were did u find it

    • @lemonsarejuicy8817
      @lemonsarejuicy8817 5 หลายเดือนก่อน

      @@MaskedYemeni1i can’t remember sorry

  • @simonsobo4644
    @simonsobo4644 8 หลายเดือนก่อน

    I hope you’re okay. I’m kinda worried about you because I’ve been trying to find an alternative to Patreon to pay you for your lessons. By sheer chance I was able to cancel my Patreon subscription but I meant it when I told you I was grateful to you and I want to contribute. Do you have a PayPal or Venmo account? Please let me know so that I can keep my promise to you.
    Simon

    • @RigorMortisTortoise
      @RigorMortisTortoise  8 หลายเดือนก่อน +1

      Hey Simon I really appreciate the support and your intention but there's really no need! Thank you though I appreciate the thought

  • @simonsobo4644
    @simonsobo4644 8 หลายเดือนก่อน

    I promised you I’d be a loyal Patreon follower but I canceled for two reasons. First, I was having so much trouble with Unity itself I gave up on it as my game engine of choice. (I accidentally discovered Unity works much better on a Mac through Google Chrome.) The second reason is because I’ve had nothing but trouble via Patreon. What I was hoping for was for me to be able to pay you the money I promised without Patreon. Can I send you money through PayPal? Please let me know.
    Simon

  • @MaskedYemeni1
    @MaskedYemeni1 5 หลายเดือนก่อน

    hey coud u write all the code to me in the comments and pin me for others to know the script?

  • @BotterFingers
    @BotterFingers 10 หลายเดือนก่อน +5

    Next time work slower, and show everything you do. The basics of Tutorials

    • @thepsychicpeach8425
      @thepsychicpeach8425 6 หลายเดือนก่อน +6

      Then watch more videos. Its literally less than 10 mins and she shows you EVERYTHING. How bad is your attention span.

    • @ayuwan_cant_play
      @ayuwan_cant_play 4 หลายเดือนก่อน

      You are right my friend, he probably jerking or some shit​@@thepsychicpeach8425

    • @user-nq8cw5er5s
      @user-nq8cw5er5s 3 หลายเดือนก่อน

      Lmao bro pick 0.5 speed