Relative Content

Tag Archive for c#unity-game-engine2d

My character does not do what I expected him to do and I dont know why

I am making a 2d game in unity and I haven’t touched a game engine in months but I found this movement script I had saved which I wrote a while ago, I set everything up and when I was going to try, my wall jump was off. Instead of just going up diagonaly up and sideways like every wall jump mine simply goes to the side at a very not intended fast speed. I really can’t recall if this script was working back then but I dont think I would save something that doesnt work

How can I make my enemy target a player who enters the scene?

So to explain a little further, I want an enemy from scene 2 to target a player that starts in scene 1. I already have a script for the damage and a AI script for the enemy, to chase the player, but I can not make it target the player, because the player starts in a different scene. I have tried to look for multiple youtube videos as well as asked some of my more savy coding friends.

2d walking animations using unity and c#

my script worked fine without walking animations but once i implemented them and used isMoving my player does not move forward and if i press down he goes up

Unity 2D – Rotate Object Around Point to Face Cursor

I’ve encountered a roadblock.
I’m trying to make a hand (just a rectangle) that rotates so the palm is on the cursor. I can handle the extending of the hand, but I can’t seem to figure out to do this.
mspaint diagram of what I need.