Hello, I would like to know if the power can be changed when my character evolves. the two powers emerge from a box. each actor contains different powers
there I should change power
the leaf should come out
@Hector40 Are you actually calling these events somewhere? Of course it’s not going to work if you don’t call them.
And instead of getting the actor transform you have to get the location/rotation where you want the power up to spawn. If you can’t figure that out just put an arrow component on top of the cube and get it’s location split the transform input and plug in the arrow location.
In the event Your Existing Code I just used it to show where you have to put the code for what happens when Mario picks up the mushroom. So you have to replace the print string with that.
After all of that make sure that you call your custom events when the cube is hit and when the mushroom is picked up.
when Mario hits this block, we check which class it is
– if he is normal, we SelectFalse power
– if he is evolved, we SelectTrue power
– we store the result in a variable Power up To Spawn for later
once TL completes, we spawn a new power using the variable
You should consider inheritance, so you do not need to script it again in every single block class.