Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

eadyingh

21
Posts
5
Topics
3
Following
A member registered May 19, 2021

Creator of

Recent community posts

Rookie Jam community · Created a new topic FAQ

any topic?

Ta! After years now I finally know!

maybe

ta both of ya. I'm just hopin' not to come last, I'm happy even if I come second last.

any tips for doing stuff as fast as possible.

req sent

I'd like to join you I'm also team unity.

(1 edit)

(if u don't wanna understand then scroll to very bottom.)

first declare 

public int Xspeed ;

public int Xspeed;

//above start method this'll allow you to access it in inspector, btw you can name it anything

then,

if(Input.GetKey("up")){

transform.position += new Vector3(0,Yspeed,0)*Time.deltaTime;
}

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Input.GetKey()

//replace key with any key name such as "up" ,"down" ,"left", "right "

Vector3 

//Vector3 is a class/object that take 3 arguments x,y,z  you can access these values by using dot next to it (dot syntax)

transform.position 

//It's also a bit like Vector3 .When you'll click on your object you can see transform in inspector and under that you'll find position. If you'll change x y z values object will move and this is what we're doin' from script.

time.deltaTime

//if you won't multiply with time.deltaTime then it might not run on 60 fps at all devices.

here's the script copy paste it




using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class NewBehaviourScript : MonoBehaviour

{   

    public float Xspeed;

    public float Yspeed;

    // Start is called before the first frame update

    void Start()

    {

    }

    // Update is called once per frame

    void Update()

    {

        if(Input.GetKey("down")){

            transform.position+=new Vector3(0,-Yspeed,0)*Time.deltaTime;

        }

        if(Input.GetKey("up")){

            transform.position+=new Vector3(0,Yspeed,0)*Time.deltaTime;

        }

        if(Input.GetKey("left")){

            transform.position+=new Vector3(-Xspeed,0,0)*Time.deltaTime;

        }

        if(Input.GetKey("right")){

            transform.position+=new Vector3(Xspeed,0,0)*Time.deltaTime;

        }

    }

}

//btw remember to drag it on you object and then change value of Xspeed and Yspeed from inspector.

what is your problem?

no it's not aloud but allowed though. 

That is really cool!

btw how many lines of code.

I lost

XD! btw what u r making?

Good luck Mate!

mate I was also thinking like that a rpg but with text rather than graphics!  

but I dropped the idea coz It'd most likely impossible to complete :(

btw if ya succeed you'll definitely  get first.

maybe I'm weird but I hope just to not get last. 

thanks but can i use css for background and border-radius

sorry If am being annoying.

July Text Based Jam community · Created a new topic discord

??

thanks for replying but doesn't the game needs to run on web browser only?

IDK But I think u must use something that can be rendered in html

July Text Based Jam community · Created a new topic help!

html5?