Could anyone please help me on what I need to do? I would like for the enemy to die when the player stomps on its head.
I have just started using Unreal Engine and wanted to create a simple mario-like game.
Could anyone please help me on what I need to do? I would like for the enemy to die when the player stomps on its head.
I have just started using Unreal Engine and wanted to create a simple mario-like game.
You are on the right way but I would suggest you try out some basic Unreal tutorials to learn how things are done in unreal.
I hope this leads you in the right direction, there may be other ways to do what you want, espacially how to determine if a player hits the head of an enemy but try to make your way working, then you can improve it.
Thank you for your help with my situation. I am going to start watching those basic tutorials once I am able to. Those are the ones from the website, right?
Anyways, I’ve understood what you meant on 2-4 but I can’t understand what I’m supposed to be doing for the first one. I know I’m supposed to change GetClass and ClassIsChildOf to something but I do not know what I’m supposed to change it to.
Thank you again for helping me with this.
It is easier then you may think, just make a right click somewhere in your graph and type the name of your enemy Actor, unreal will suggest you a cast node which you can use. Take a look here.
I can’t seem to really understand most of the things properly so I think I will go and watch the tutorials first then come back to coding this one. I thank you again for helping me with this, I really appreciate it.
If you have a programming background, this is very simple but don’t get frustrated, this is easier than you might think and with a little learning you will get it.