u/MaterialExternal7483
-
178points
-
2points
Wow, I didn't think it's been that long (i.redd.it) [Removed - Rule 3: Done To Death]
-
0points
I tried creating my first project and I kept getting this error (i.redd.it) [Solved]
-
3points
Ps4 controller inputs (self.Unity3D)
-
1points
I need help with the collisions on my game (v.redd.it) [Solved/Answered]
-
64points
My first car ever in blender (old.reddit.com)
-
10points
Can anyone help me get the audio of my game to come through unity remote (i.redd.it) [Question]
MaterialExternal7483
MaterialExternal7483
I know u have already got many suggestions but this is with saving
private int score; private int highScore;
private void Start (){ PlayerPrefs.GetInt("hs"); }
private void Update (){ if (Input.GetKeyDown(KeyCode.A)){ score ++; CheckScore(); }
public void CheckScore(){ if (score > highScore){ highScore++; Save(); } }
private void Save (){ PlayerPrefs.SetInt("hs", highScore); }
MaterialExternal7483
Out of all times to fall.
MaterialExternal7483
Pretty sure link only slept for 100 years
MaterialExternal7483
I always found the old input system easier
MaterialExternal7483
For music, I like to use bandlab. For sound effects, I use Freesound
MaterialExternal7483
Definitely shouldn't be like that
MaterialExternal7483
Thank you
MaterialExternal7483
Is there a reason the camera is constantly moving down slowly, I tried multiple controllers so it's not stick drift. It just keeps going
Edit: never mind I figured it out, I just increased the dead to 0.01
MaterialExternal7483
While I agree math is very important and used in almost every script, it is not required to be good at math to make games. You can try visual scripting or learn C# using the internets many tutorials. I am really bad at math but can code pretty well. I started with Brackeys how to make a game tutorial on YouTube, I recommend you start there.
Edit: I realize you said you would make mainly 2d games but brakeys really explains thing well and you could learn a lot from it, it's an 11 part series with 10ish minutes per episode.
MaterialExternal7483
The day I was born
MaterialExternal7483
That was the problem, thanks for the help
MaterialExternal7483
private SpriteRenderer render;
void Start (){ render = GetComponent<SpriteRenderer>(); }
void Update (){ If (Input.GetKey(KeyCode.A)){ render.flipX = true; } }
flipX vs flipY depends on direction true vs false is the flip state The line in start is one line
MaterialExternal7483
Might not be the problem but you should be using an animator component instead of a animation component
MaterialExternal7483
It does now that you mention it
MaterialExternal7483
Didn't feel like it 😕
MaterialExternal7483
Look on My profile, I had to wait much longer
MaterialExternal7483
They say it's still going to this day
The arcade area instantly reminded me of security breach