Butthun - Đọc ngay tin tức trong ngày 24h hôm nay
  • Home
  • Công Nghệ
  • Du Lịch
  • Kinh Doanh
No Result
View All Result
  • Home
  • Công Nghệ
  • Du Lịch
  • Kinh Doanh
No Result
View All Result
Butthun - Đọc ngay tin tức trong ngày 24h hôm nay
No Result
View All Result

Unity Tutorial How To Make Restart Button To Reload The Scene In Jetpack Clone Android Game

admin by admin
October 27, 2021
in Game
37
Unity Tutorial How To Make Restart Button To Reload The Scene In Jetpack Clone Android Game

#unitytutorial #unityandroidtutorial #unityreloadbutton
In the previous video ( we created a Jetpack game prototype with pick up fuel can feature. In this video tutorial, we will add a restart button to our game so we will be able to reload the scene when fuel is over and play again.

Download Jetpack game for Android

 

The BEST MECHANICAL KEYBOARD Metoo Zero for the price. I use it. And I must say that it’s perfect!

Consider purchasing my ULTIMATE UDEMY COURSE with great discount

If you like what I’m doing then you can support me through
www.patreon.com/alexanderzotov
or here

Thank you)

What this video is about and what it can be used for also: unity 2d tutorial,
Unity Tutorial How To Make Restart Button, Unity Tutorial How To Make Restart Button To Reload The Scene, unity restart button, unity restart game, unity restart scene, unity restart level, unity restart game button, unity restart scene button, unity restart scene script, unity restart level script, unity reload current scene, unity reload scene, unity reload level,unity reload script, unity reload scene button, learn unity fast, unity tutorial, how to make games with unity, unity how to make game, unity how to make 2d game, not as good as brackeys but good as well.

Nguồn: https://butthun.com/

Xem thêm bài viết khác: https://butthun.com/game/

Xem thêm Bài Viết:

  • Hack game bắn cá đổi thưởng offline đơn giản
  • Fastest Way to Complete EVERY Chapter in PIGGY in Roblox!
  • MAKING SNAKE PYTHON RICA RICA /EXTREME FOOD INDONESIA 1# /익스트림 음식 뱀 파이썬/エクストリームフードヘビパイソン
  • Jessica Alba Teaches Jimmy About Swass
  • 🏠House Paint🎨by SayGame🤩Swipe Strategy👑Game Play Review
Previous Post

Cách chuyển video từ iPhone sang máy tính chuẩn nhất 2020

Next Post

(Đã bán) HAI CẦU - GẦM CAO | Suzuki Vitara 1.6L M/T 2006

Next Post
(Đã bán) HAI CẦU – GẦM CAO | Suzuki Vitara 1.6L M/T 2006

(Đã bán) HAI CẦU - GẦM CAO | Suzuki Vitara 1.6L M/T 2006

Comments 37

  1. Alexander Zotov says:
    2 years ago

    ALARM! ALARM! COROUTINE ISSUE DETECTED!
    If you press and hold your finger at the very beginning of the game, pass through the comets without touching them, pick up the fuel can and fly off the screen without releasing your finger then fuel counter will freeze at some value and will not go down until you release and put finger back on the screen. It happens because of the coroutine. When it starts it takes the current fuel amount value (let it be 50 for example). Coroutine stops with two conditions – if finger is released or if fuel amount inside this coroutine is equal to zero. So if you pick up fuel can while coroutine is running when fuel amount equals to 50 then overall fuel amount becomes 100 back again. But inside the coroutine, it still goes down from 50. When coroutine is over (loop comes to zero) then engine should stop but it doesn't happen because fuel amount is 50 now. And it will always be 50 until you release the finger and put it back on the screen to start new coroutine which will countdown from 50 to 0.
    So to fix this issue we should replace this line in BurnFuel coroutine
    for (int i = fuelAmount; i >= 1; i–)
    with this line
    while (fuelAmount > 0)
    and everything will work fine.
    So coroutine code will look like this

    private IEnumerator BurnFuel()
    {
    while (fuelAmount > 0)
    {
    fuelAmount -= 1;
    yield return new WaitForSeconds(0.01f);

    if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Ended)
    //if (Input.GetMouseButtonUp(0))
    break;
    }
    }

    But we should use WHILE loop inside any of the coroutine very very carefully because it can halt the running project easily.

    Reply
  2. Thicc Befox says:
    2 years ago

    You can probably set the scene that you want to reload as
    SceneManager.LoadScene(SceneManager.GetActiveScene())

    Reply
  3. IchbinJonqs says:
    2 years ago

    thank you needed this for my game

    Reply
  4. ConstantLime830 says:
    2 years ago

    y is this not working for meeeeeeeee

    Reply
  5. Three_A says:
    2 years ago

    Спасибо большое за видео! Вы мой спаситель, Александр)
    Подскажите, у Вас есть видео, в котором бы объяснялось, как научить эту кнопку появляться только после смерти гг?

    Reply
  6. Ulises Gamboa says:
    2 years ago

    I don't know why it doesn't grab the click or the touch of the reset button. I did everything that appeared in the procedure. I even checked that the scene was the same as the code. Help!

    Reply
  7. STARPIG !!! says:
    2 years ago

    Perfect!! Fast and simple like every Unity tutorial should be.

    Reply
  8. DSlut says:
    2 years ago

    Thanks for the tutorial! @Alex, I've got a question. I added a restart button to my simple puzzle game with WinText (see your another guide), and it happens that WinText stays on a screen when I press restart button. How I can avoid it and make full restart?

    Reply
  9. HÜSEYİN DEMİR says:
    2 years ago

    You are man

    Reply
  10. Polat gündüz says:
    2 years ago

    pls restart code write

    Reply
  11. нано бараш says:
    2 years ago

    my scene freezes after pressing the restart button

    Reply
  12. Max Derksen says:
    2 years ago

    Thanks)

    Reply
  13. Zenildo Dende says:
    2 years ago

    thank u so much!

    Reply
  14. Johnny D says:
    2 years ago

    simple and very clear, thank you!

    Reply
  15. Zerprob says:
    2 years ago

    what is the canvas?

    Reply
  16. YouiDaBoss says:
    2 years ago

    So I have BG music in my game and whenever I reset the game, the music stays but another one plays again. Can you please help?

    Reply
  17. MONER VLOG says:
    2 years ago

    thank you but the semplescene can not Load into my projects

    Reply
  18. Tech Games says:
    2 years ago

    Great job sir

    Reply
  19. Loweni says:
    2 years ago

    Can't find my restart button sprite in the project folder what do I do?

    Reply
  20. THE BAD WAN says:
    2 years ago

    Thank you so much dude!!!!

    Reply
  21. Rajang gg says:
    2 years ago

    thx man for this video

    Reply
  22. Rao Muhammad Usama says:
    2 years ago

    I am a beginner and wanted to integrate a restart button in my game. Thanks for helping me out.

    Reply
  23. Dipanshu Mahla says:
    2 years ago

    The update function does not work after reloading the scene.

    Reply
  24. skyhuntergr says:
    2 years ago

    Alexander is one of the most informative and easy going Unity tutors in Youtube. I just love the mood and the valuable things you teach us man, straight to the point as always. Thanks!

    Reply
  25. Aspect DK says:
    2 years ago

    Plzzz help me! I have no funktions? What can i do?

    Reply
  26. Cactus1206 says:
    2 years ago

    Hey i got a question, how do you assign a key to press a button in Unity?

    Reply
  27. Archibald Findri says:
    2 years ago

    I've been looking for a tutorial like this for a while – it's perfect. I have followed it to the letter but it doesn't work 🙁

    Got any suggestions as to why?

    Reply
  28. GeddyGames says:
    2 years ago

    Can someone help me, i followed the code but after i restarted my game it freezes completely. Can someone help me out? thanks and muchly appreciate it!

    Reply
  29. sagar jain says:
    2 years ago

    Thanks a lot for short and simple tutorial…

    Reply
  30. Fuzzy D Pozzy says:
    2 years ago

    man can you please please please make a video, how to build game in unity like what sdk or what java to use and how to install them just please and thanks

    Reply
  31. Miko Tv says:
    2 years ago

    Amazing,please keep it up uploading your awesome tutorials?

    Reply
  32. A.M Alfonso says:
    2 years ago

    i love de simplicity of your videos. Unity for family

    Reply
  33. Tonko Caric says:
    2 years ago

    Great video as usual, though you should work on promoting the channel – link your tutorials on some social platforms like Unity2D subreddit – www.reddit.com/r/Unity2D, and organize some videos that are part of the bigger project in youtube playlists.

    Reply
  34. Salah Moufa says:
    2 years ago

    So mush love , can u do tutorial about secret rooms please

    Reply
  35. Nikhil Kadiyan says:
    2 years ago

    Thanks

    Reply
  36. Павел Бородулин says:
    2 years ago

    Great method because it is very simple

    Reply
  37. Tensai Gamer says:
    2 years ago

    Thank you ❤

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Xem Thêm

[NATV] Hủ tiếu khô Sa Đéc (27/11/2014)

[NATV] Hủ tiếu khô Sa Đéc (27/11/2014)

July 15, 2020
Quyết toán GXD kiểm soát thanh toán khối lượng hoàn thành, phát sinh trong ngoài hợp đồng như nào?

Quyết toán GXD kiểm soát thanh toán khối lượng hoàn thành, phát sinh trong ngoài hợp đồng như nào?

July 15, 2020
Tổng hợp tin tức Việt Nam nổi bật nhất trong tuần | Bản tin cuối tuần ngày 5/7/2020 | FBNC

Tổng hợp tin tức Việt Nam nổi bật nhất trong tuần | Bản tin cuối tuần ngày 5/7/2020 | FBNC

July 15, 2020
Lần đầu thấy Khương Dừa cười và khen nhân viên vì chốt hợp đồng cực kỳ quan trọng

Lần đầu thấy Khương Dừa cười và khen nhân viên vì chốt hợp đồng cực kỳ quan trọng

July 15, 2020
Top 5 món ngon nên ăn thử ở Hội An (Oops Banana)

Top 5 món ngon nên ăn thử ở Hội An (Oops Banana)

July 15, 2020
Thuyết minh cuộc đời Huỳnh Thủy Lê tại chùa Kiến An Cung| Gấc Việt !

Thuyết minh cuộc đời Huỳnh Thủy Lê tại chùa Kiến An Cung| Gấc Việt !

July 15, 2020
  • Liên Hệ
  • Chính Sách Bảo Mật

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Công Nghệ
  • Du Lịch
  • Kinh Doanh

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.