Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Odyssey Coder

13
Posts
3
Topics
1
Followers
A member registered Sep 15, 2020

Recent community posts

Devtober 2020 community · Created a new topic Question

So I want to use Among Us characters I would make them in to pixel art would this be alright?

well done 

yeah I was not able to get a working prototype my pc also broke next  jam though

I think we are fine with sound effects just use the color palette 

A bit of python and a little java

ok thank you sorry for be a dumb arse

this would be what it looks like right

 transform.rotation *= Euler(0, 0, -10);

(1 edit)

Alright I put everything in and my code now looks like this (Sorry for being pane in butt I am dummy with barely any C# knowledge)

using UnityEngine;

public class CharacterController : MonoBehaviour
{
    public float MovementSpeed = 1;
    private Rigidbody2D _rigidbody;

    private void Start()
    {
        _rigidbody = GetComponent<Rigidbody2D>();
    }

    private void Update()
    {
        var movement = Input.GetAxis("Horizontal");
        _rigidbody.AddForce(new Vector3(movement, 0, 0) * Time.deltaTime * MovementSpeed);
        transform.Translate(Input.GetAxis("Horizontal") * 15f * Time.deltaTime, 0f, 0f);
        if (Input.GetAxis("Horizontal") < 0)
        {
            transform.rotation *= Quaternion.eulerAngles(0, 0, 10);

        }
        if (Input.GetAxis("Horizontal") > 0)
        {
            transform.rotation *= Quaternion.eulerAngles(0, 0, -10);

        }
        

    }

}

I now get the error Quarternion.eulerAngles cannot be used like a method. Error code CS1955

Mini Jam 63: Future community · Created a new topic Help!
(1 edit)

I am trying to add rotation to my player and he keeps during wide and I do not know how to fix. Does anyone know. 

My Script:

using UnityEngine;

public class CharacterController : MonoBehaviour
{
    public float MovementSpeed = 1;
    private Rigidbody2D _rigidbody;

    private void Start()
    {
        _rigidbody = GetComponent<Rigidbody2D>();
    }

    private void Update()
    {
        var movement = Input.GetAxis("Horizontal");
        transform.position += new Vector3(movement, 0, 0) * Time.deltaTime * MovementSpeed;
        transform.Translate(Input.GetAxis("Horizontal")* 15f * Time.deltaTime, 0f, 0f);
        Vector3 characterScale = transform.localScale;
        if (Input.GetAxis("Horizontal") < 0)
        {
            characterScale.x = -10;

        }
        if (Input.GetAxis("Horizontal") > 0)
        {
            characterScale.x = 10;

        }
        transform.localScale = characterScale;

    }
   

}

I guess gamer

Thank you this is my first Jam so I am very nervous

(1 edit)

If I do not finish my game in time is it fine if I don't submit