Making the Game: Adding Style
As promised in the last post, this post will focus on how I created a more stylish effect when a cube key comes in contact with a cube-activated button, as well as some extra style-related things. Cube Key Snapping I wanted the cube to snap into the button with an interesting animation and the materials on the cube and button to change. I am fairly satisfied with the result I achieved, I must say. To begin, I created a Custom Event in my Cube Key blueprint called "Snap Into Place", which will be called when the key and button make contact. To prevent the player from interfering with the key after it comes within the button's trigger box, I turned off physics simulation on its static mesh using the Set Simulate Physics node. Since the invisible shockwave projectile can only push objects that simulate physics, this makes the Cube Key immune to its effects! The next step was to get the key where it needs to be. To do this, I used a Timeline to Lerp between its...