Hello everybody,
first of all we would like to Introduce ourselves, we are a group of “programmers” - or lets say “enthusiasts” who form a chilled out BLUANT TEAM.
After a madassfuck chill(Pardon me for the language please) in Blu’s garage, we decided to start programming. That moment was THE MOMENT!(Tadadadam). That was about 6 months ago, and up to now we have managed to make couple of very interesting games.
We started with another editor(Not gonna say name S*****L) and managed to port playable games to android phone and about 2 months ago we started with Unity. By now we fairly understand the concept of programming and what goes where. We have basic understanding of the unity editor(Still listing the manual everyday), but whatever we find after searching for a problem on the Internet we explore deeper so that we understand it. Yeah right hahahhaha.
We would grately appreciate if you guys could give us some guidance on what we should look for and where.
We want to make a side scrolling game with an obstacle being spawned and just moving to the left. After adding sprites and making scripts for movement. We noticed that with using
transform.position = new Vector3 (transform.position.x- speed * Time.deltaTime, transform.position.y , transform.position.z);
we experience some jittering or how we like to call it “Štekanje”. The movement of that object isn’t smooth it somehow stops or goes back or something. We searched online and found out that we could also modify the position using the Rigidbody2D.velocity something. Now we understand that there is a Rigidbody2D component to be added to the prefab, and we understand that addforce should be used to decide which vector2/3(x,y,(z)) will be the forces vector. But we don’t really understand how to combine those into a code. Doing it that way maybe isn’t even the right solution but thats just the second one we are trying yet, so if you have any helpful hints on what to use , we would be thankfull.
Okay now lets talk it like programmers already!
void Start () {
//Here we need to GetComponent<>() so we can get component of the Rigidbody2D
// How does this transfer into code?
//It should be defined in Start but what are we missing?
gameObject.GetComponent <Rigidbody2D> ();
}
For now these are the only questions we have and we appreciate any comment about whats written above. Every thought is welcome.
Keep it real and stay strong!
Bluant Team