#Well I accidentally deleted a lot of my
1 messages · Page 1 of 1 (latest)
@boreal folio
Let's continue in here.
Anyway, the reason why we don't show code that way is because if we want to look something up, we can't cut and paste it.
I don't show the code in the video.
Sorry if I sounded testy. I didn't mean to. You're new, I get it.
I sent the video to show how the movement system works to get a better understanding of it
Awesome. But like I said, it won't play so I can't watch it.
Ah that sucks.
It has length 0:00
It works for me, thats strange
Probably Discord.
yeah, it acts up like this a lot.
but my main issue is I'm not sure what movement system would fit best for my moveset
Okay, I am going to send to you a website and you should absolutely take this course of lessons they put together in future. It will help you not lose code in the future.
In this case I just deleted it to rework the system, then the new system i made didnt work at all
and i added stuff in between that so I dont want to undo it
here is what you do
copy-paste the contents of the current file into a new file.
Then you can undo as much as you want. Make sure you save the new file.
true true, i'll keep that in mind i shouldve done that
but sorry if I'm kinda an idiot, when I say I'm new to C# I mean like NEW
So i'm wondering, is there a movement system where you can change the X and Y values specifically?
because the character only moves in 4-directions
and i have to be able to set specifically the X value to 0 when you use the Y, which lets me do the system i like (this is hard to explain)
Yeah you can do that. You manipulate the Transform of your GameObject
so for instance if you want to move it up you might do this:
void UpdateFixed()
{
Transform t = GetComponent<Transform>;
t = new Vector2(t.position.x + 1, t.position.y);
}
is t a placeholder for the sprite/object in question?
So t the Transform component of the object that holds your sprite
Think of your GameObject as a skeleton and the components as bones. You define the structure of the skeleton by adding bones to it.
ah i see.
so whenever I run this, I can add my variables to the x and y and it will move accordingly?
Yes, but you have to do so in the form that it expects.
Transform.position is a Vector2, so you have to give it the information as a Vector2.
You really should take some kind of instruction if you are this new. It is going to be a long, confusing project and this is the worst way to learn. I speak from experience. I recommend checking out Udemy or Zenva.
Zenva often has their courses packaged in bundles on HumbleBundle and Fanatical.
I used Zenva, it's pretty good.
i will keep that in mind
They have a whole package for $10
When you are asking questions this fundamental, you might find that a lot of people don't respond. They expect you to have a bare minimum level of knowledge already. Otherwise they are just teaching you for free.
And teaching is something they would reasonably expect to be paid for. People invest a lot of time and the time they spend teaching you is time they can't use for their own projects. I don't say this to discourage you, I say this to encourage you to take the time to take a course.