#bird

1 messages · Page 1 of 1 (latest)

calm dome
#

I want to see if Update is even running at all

#

Add this to the very start of the method:

Debug.Log("Update.");
#

When you're having problems with something not happening, you need to figure out what is happening

full python
#

to top ?

calm dome
#

Before the if statement, yes

#

right after the opening curly brace of the Update method.

#

This should log to the console every frame.

full python
#

before we get deep i'll post the code

#

added here

calm dome
#

That is correct.

full python
#

no wayyyyyyyy

#

working

#

working

calm dome
#

i suspect you didn't save your script file

#

Unity defaults to reloading automatically when you change a file

#

so it should recompile once you save the script

full python
#

btw i noticed a thing

#

for first few sec it doesnt jump after like 2 sec it accepts command

#

and jumps

#

wait

#

it accepts jumping command after i do a left click on screen

#

and there on it jumps

calm dome
#

yeah, the game needs to be focused to receive input

#

i believe you have it on "Play Unfocused"

full python
#

if i dont press left click it still wont accept the command

#

yes

calm dome
#

that means it won't switch to the game view and it won't focus on the game

full python
#

its on unfocused

calm dome
#

This only matters in the editor

full python
#

should i change it to focus

calm dome
#

I use Unfocused when I want to watch something in the scene view without having to click back to it

#

but otherwise I leave it on Focused

calm dome
full python
#

thx