Hey, me again! I'm now at the point that I want to rotate the children in the 3D world editor so I need to do two things.
1) I need only to find a certain part of a string in the 'if entityname()' command, for the countchild/getchild loop. (see above code)
2) I then need to extract the other parts of that same string and use that for further coding.
Perhaps a quote from Ross C explains it a bit better :
I understand his explanation ... in theory, but after many frustrating hours I still cant figure out how this works :\
Some more explanation or a small example code is much appreciated!
Thanks!
1) I need only to find a certain part of a string in the 'if entityname()' command, for the countchild/getchild loop. (see above code)
2) I then need to extract the other parts of that same string and use that for further coding.
Perhaps a quote from Ross C explains it a bit better :
You simply parse each name, and extract the relevant information:
IE, search through the string and find the text:
"texture_scroll_0="
upon finding that, read from end character + 1 onwards, until you encounter a space. That will be your value you use.
It's alot to code at first, but when you get it up and running, you can alter the way your entities act in the game, simply by attaching different custom properties in the modeller. I will try and find my own small engine for handling this when i get in from work.
It may seem like alot of work, but it is worth it, as it can be reused for many games.
IE, search through the string and find the text:
"texture_scroll_0="
upon finding that, read from end character + 1 onwards, until you encounter a space. That will be your value you use.
It's alot to code at first, but when you get it up and running, you can alter the way your entities act in the game, simply by attaching different custom properties in the modeller. I will try and find my own small engine for handling this when i get in from work.
It may seem like alot of work, but it is worth it, as it can be reused for many games.
I understand his explanation ... in theory, but after many frustrating hours I still cant figure out how this works :\
Some more explanation or a small example code is much appreciated!
Thanks!