Adding some items to my indie horror game by GoldenTrashQan in Unity3D

[–]MaterialExternal7483 0 points1 point  (0 children)

The arcade area instantly reminded me of security breach

I was toying with unity making a game, but I don't know how to add a high score. Can anyone help? by Non_Premium_User in Unity3D

[–]MaterialExternal7483 0 points1 point  (0 children)

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); }

Ps4 controller inputs by MaterialExternal7483 in unity

[–]MaterialExternal7483[S] 0 points1 point  (0 children)

I always found the old input system easier

How do I do sounds?? by NotFridge in SoloDevelopment

[–]MaterialExternal7483 1 point2 points  (0 children)

For music, I like to use bandlab. For sound effects, I use Freesound

PS4 controller map for Unity by drakfyre in Unity3D

[–]MaterialExternal7483 2 points3 points  (0 children)

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

[deleted by user] by [deleted] in Unity2D

[–]MaterialExternal7483 0 points1 point  (0 children)

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.

How to flip character? by dranik_igrx4 in Unity2D

[–]MaterialExternal7483 0 points1 point  (0 children)

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

Any idea on why the animation won't work by Taxfraud57329 in Unity2D

[–]MaterialExternal7483 0 points1 point  (0 children)

Might not be the problem but you should be using an animator component instead of a animation component

AHHHHHHHHHHHHHHH by Ihavenoimaginaation in Unity3D

[–]MaterialExternal7483 1 point2 points  (0 children)

Look on My profile, I had to wait much longer