The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Development Assistance
/
how to make something react with only one other element
«
1
»
how to make something react with only one other element
PizzaPlatypus
14th Dec 2010
Member
0
Permalink
I want to make an element turn into something else when it hits a certain element how can I do this?
MiXih
14th Dec 2010
Member
0
Permalink
if(t==element1)
{
if(parts[r>>8].type == element2)
{
parts[i].type = element3;
}
}
element1 and 2 are elements to react
element3 is result element
PizzaPlatypus
14th Dec 2010
Member
0
Permalink
do I need to put PT in front of all of them?
MiXih
14th Dec 2010
Member
0
Permalink
yes, another names are undefinied (but you can in powder.h define particle without "PT_", then you can use it)
Finalflash50
14th Dec 2010
Banned
0
Permalink
This post is hidden because the user is banned
PizzaPlatypus
14th Dec 2010
Member
0
Permalink
ta lads
zc00gii
14th Dec 2010
Banned
0
Permalink
This post is hidden because the user is banned
PizzaPlatypus
14th Dec 2010
Member
0
Permalink
ty
PizzaPlatypus
14th Dec 2010
Member
0
Permalink
but I still can't compile!
DAVPPK
14th Dec 2010
Banned
0
Permalink
This post is hidden because the user is banned
«
1
»