Post the cube logic?
when I put print string on cast failed, it prints text at the start of the play
Not sure at this point, step through the script with the debugger - must have skill anyway. Or, plug in your songs into this project:
and see if you’re getting the correct, expected behaviour, chances are I did not test it correctly.
I think the problem is simulating physics with the cube. the music stops when character keeps interacting with the cube. Any chance you know how to make music keep on playing when charater keeps on pushing the cube?
This should have absolutely no impact whatsoever… but it can in some very specific circumstances, especially when the hierarchy looks like this:
When you simulate physics, it’s often important to have the simulating body sit at the root of the actor - drag it there and test again. I am assuming it’s the Static Mesh mesh that simulates, not the box. Definitely do not simulate physics on both!
You could try enabling physics sim in the attached project (just to test it) - seems to behave fine there.
nvm. it is not about simulate physics. Music stops if I touch it more than once. any idea how to fix this? I tried do once but this disables any action in the second cube.
You’d need to add additional check - see if the cube is the same as before. If they’re the same, do nothing.
This is not implemented as mentioned above in one of my comments
can you show me how to do that plz ㅠㅠ so grateful for your kindness
Sure but not at the PC for a while.
Yup! no problem. I’ll be making other stuffs of my game. Thanks again.
Thank you soooooooo much! now everything works as I intended. can’t thank you more I love you <3