#Well I accidentally deleted a lot of my

1 messages · Page 1 of 1 (latest)

scarlet roost
#

@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.

boreal folio
#

I don't show the code in the video.

scarlet roost
#

Sorry if I sounded testy. I didn't mean to. You're new, I get it.

boreal folio
#

I sent the video to show how the movement system works to get a better understanding of it

scarlet roost
#

Awesome. But like I said, it won't play so I can't watch it.

boreal folio
#

Ah that sucks.

scarlet roost
#

It has length 0:00

boreal folio
#

It works for me, thats strange

scarlet roost
#

Probably Discord.

boreal folio
#

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

scarlet roost
#

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.

boreal folio
#

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

scarlet roost
#

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.

boreal folio
#

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

scarlet roost
#

I get it. I was there once.

#

I am still fairly new to C#

boreal folio
#

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)

scarlet roost
#

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); 
}
boreal folio
scarlet roost
#

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.

boreal folio
#

ah i see.

boreal folio
scarlet roost
#

Yes, but you have to do so in the form that it expects.

boreal folio
#

right.

#

i'll igve it a try

scarlet roost
#

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.

boreal folio
#

i will keep that in mind

scarlet roost
#

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.