Avoid BUGS and Work FASTER - 10 Godot Engine Tricks

preview_player
Показать описание
We collected more Godot tricks we want to show you! This time we have hidden things you can do with timers, signal connections, shader parameters and much more.

--

Follow us on twitter to stay updated on Furcifer news and tutorials:
Рекомендации по теме
Комментарии
Автор

Share your Godot tricks (or else I'll call your grandma)!

PlayWithFurcifer
Автор

That shatter particle effect is exactly what I've been looking for. Thank you!

lyingpancake
Автор

I have some trickery for you:

You know that Godot does not have static variables? That means that your static func don't have where to store anything. Well, I have a solution: make a custom Resource, and a resource file, preload it in your static func and store your static variables there. But wait, there is more…

You know that the scene tree is not available from a Resource? That is because - unlike nodes - resources are not in the scene tree. So what if you want - for example - to access an autoload from your custom Resource? Well, use the get_main_loop method from the Engine singleton. That will give you a reference to the MainLoop instance, which - by default - is your - main - SceneTree. Oh, and by similar means you can access the SceneTree form your static func.

So if you have been passing a reference around to be able to access these form your static func or Resources, you can refactor that.

Theraot
Автор

I was having this exact problem with a timer continuing during the game being paused, and it was causing a situation where if a player died, then quickly paused, a player object would respawn even while paused. Thank you so much for this.

dreamhived
Автор

I wish scene tree timers also had a parameter to run on physics process. that would be so useful.
That modulate stuff is really clever!

LVo
Автор

I had not considered using modulate like that. Now I can rewrite my hue rotation shader to use modulate.

Theraot
Автор

That girl grabbing the money flying out of the bag, where is that clip from? 0:09

Tenraiden
Автор

Some really great stuff guys, constanly getting some juicy info here! Thanks! Any chance there is a Video on a good way of making top down trails on water?

DjPerception
Автор

that exploding sprite thing is very cool. wouldn't have thought of that

hamoom
Автор

is a safety hazard and honestly should never be used. for any poor fella who try to use this thing on your project, the likely hood of this causing headache is massive, please just generates regular timer nodes.

Galomortalbr
Автор

This is one of the most useful videos you lot have made. (For me, at least.)

JosephCatrambone
Автор

Thank you guys for this video!
I was using an algorithm to break my sprite into many objects. The issue is that it can get laggy... I´ll use this method instead. Though I did not understand why you added an animation at the end. ( I am noob and I would just emit the particles once).
Regards!

dsfdsdiaz
Автор

So the thumbnail says do not create a get_tree(). create_timer() but on 0:26 so say the opposite?

mgomezmunoz
Автор

oh my god that create_timer thing makes me feel like an idiot. i always kinda felt that cluttering a node with timers was kind of an ugly looking thing so to know that there's been a code-based workaround for that is both relieving and irritating.

SmeddyTooBestChannel
Автор

You save me so much time. Great videos! <3 <3

Siberiius
Автор

the tests show awesome results, thank you for this ❤

AudioBoi
Автор

I just found out if you change the icon.svg file in your project, that icon will be the one that shows in the project manager. Fun stuff

Phlip
Автор

these videos are exactly what I need thank you!

sandsandwich
Автор

Never had to use a scene tree timer, for me it's either signals when I need to wait for an animation or tween to complete. Or a variable that I update in _process when I need to do something periodically. It also allows me to randomize periods, make them dependent on circumstances or reset them prematurely.

badunius_code
Автор

If you use in your code any non defined actions in project settings your FPS will drop to several FPS per minute. :D
There are not any error messages as far as I remember. This occurs often when transferring parts of the code from one project to another. Do not use this trick. :D

ivailoburov