2 important questions about setup and referencing actor data...
Hey all. Two quick questions...
1.) Is there a way to have "on level start" instructions. Meaning, something like, "At beginning of level set attributes x and y to 1. Set Attribute score to 001."
2.) Is there a way to obtain/alter data from another actor when editing a different actor? Example: On actor X, I create a rule "accelerate towards", and I want it to accelerate TOWARDS actor Y. OR, while editing actor X say something like, "If actor Y is in animation x, then actor x do x." Essentially i'm looking to see if there's a way for each actor to be able to look at each other's data without having to create game attributes and or use position coordinates (ala accelerate towards).
Many thanks!
DH
1.) Is there a way to have "on level start" instructions. Meaning, something like, "At beginning of level set attributes x and y to 1. Set Attribute score to 001."
2.) Is there a way to obtain/alter data from another actor when editing a different actor? Example: On actor X, I create a rule "accelerate towards", and I want it to accelerate TOWARDS actor Y. OR, while editing actor X say something like, "If actor Y is in animation x, then actor x do x." Essentially i'm looking to see if there's a way for each actor to be able to look at each other's data without having to create game attributes and or use position coordinates (ala accelerate towards).
Many thanks!
DH
Comments
2.) two options:
a) You can create a game or scene attribute call it game.barry_X (for example) to show a particular files x position, in your actor add a 'change attribute' (or 'constrain') position x to your newly created game.barry_X. Then in your other actor you can see that info, e.g. have a change attribute self.width to game.barry_X.
b) Double click on your actor once placed in the scene, unlock it (the big padlock) rather than edit prototype. And then you will have access to the scene actors.
e.g.
Add a 'change attribute' self position x to scene, layers, actor, postion, x.
1.) I'm still not clear on why unlocking the actor is considered a no no. Or rather, what the difference between that and the prototype is. (This method DID work however! So thanks! I'm just not understanding now, why it only appears once I've unlocked the actor).
2.) As for the first question (i.e. game.start etc.) perhaps I'm not understanding the answer. Essentially I was curious if there was a way to actually have an initial control over how a level starts. I used to use a very old program back in the early 90's that had a "rule" that stated, "When game starts, do X Y and Z" I'm very confident you're answering this question, but I'm just not getting it yet. How do I tell the game that it has in fact started? You had mentioned giving it a value of 1 when it starts.
Many sincere thank you's for your answers thus far!