How can I connect two object to move in tandom?
pixelpowervfx
Member Posts: 8
I have a platform game the has a tank body and the cannon of the tank moving together as one. But when I start the rotation of the cannon it looses alignment with the tank body. Is there a way I can connect the two actors so they move together and behave normally?
Comments
Also, if you want the character to be slight above or below the main, while still moving in tandem, in the constrain attribute for the x and y, put + or - on the position so they will be that distance from the center of the main character. - for left(x) or down(y), + for right(x),up(y).
EDIT: I found this out while trying to figure out how to make my character attack from any angle without rotating the actual actor in a platform with gravity. I had made another invisible actor that rotates so that attacks can be aimed in any direction without affecting the main. Although, I messed up when arranging the behaviors and had a bug that at the time I couldn't solve but days later, I finally figured out what was missing to fix it, but decided to go back to it later when I had the time.
I also like how some attribute formulas can use math to do interesting things. I managed to make an awesome attack that changes size and shrinks depending on a power meter and depletes when the energy meter runs out.