Steam'i Yükleyin
giriş
|
dil
简体中文 (Basitleştirilmiş Çince)
繁體中文 (Geleneksel Çince)
日本語 (Japonca)
한국어 (Korece)
ไทย (Tayca)
Български (Bulgarca)
Čeština (Çekçe)
Dansk (Danca)
Deutsch (Almanca)
English (İngilizce)
Español - España (İspanyolca - İspanya)
Español - Latinoamérica (İspanyolca - Latin Amerika)
Ελληνικά (Yunanca)
Français (Fransızca)
Italiano (İtalyanca)
Bahasa Indonesia (Endonezce)
Magyar (Macarca)
Nederlands (Hollandaca)
Norsk (Norveççe)
Polski (Lehçe)
Português (Portekizce - Portekiz)
Português - Brasil (Portekizce - Brezilya)
Română (Rumence)
Русский (Rusça)
Suomi (Fince)
Svenska (İsveççe)
Tiếng Việt (Vietnamca)
Українська (Ukraynaca)
Bir çeviri sorunu bildirin
Here's how I'd go about it:
Coin Picked up pseudo code:
If Picked up - change to Particles
or
If Picked up - Add Child Particles to Coin, Remove Child Particles From Coin, Pass the Child to Root, Tell Root to Spawn that Passed Child (as in Reparent from Coin to Root)
Just adding particles to coin will result in no particles if the coin is deleted because the particles are a child of the coin and all of the children of the coin are removed.
1.
replace_by()
2.
add_child()
remove_child()
connect()
get_parent()
var child=coin.instance()
add_child(child)
you would really benefit a lot from working your way through the examples in the docs. you should come away from that understanding everything the above posters have just said.
its worth your time, trust me ;)
And we can't just write lines out of thin air if we don't understand what your code is, so maybe do us the favor of posting what you have, then maybe we can explain what's wrong so you can fix it.
That's why everyone tells you to look at the documentation, because that's the purpose of the documentation.
Then maybe first learn the basics and then start actually working on code. If you can't work with the documentation, we can't help you much either.
Sorry if I sound rude, but trying to code without understanding code and more importantly - without wanting to understand code - is a fool's errand and won't get you far.