This site requires JavaScript, please enable it in your browser!
Greenfoot back
GLOBALHUNT
GLOBALHUNT wrote ...

2021/3/26

How To Add A Variable Showing The Speed Of The Object?

GLOBALHUNT GLOBALHUNT

2021/3/26

#
I am trying to create a game in which a rocket moves up when we press the "W" button and when it reaches the top of the screen/world the world background will change and the rocket changes its location to the lower part so as to show the rocket has passed this layer of the earth and is going through the other one
danpost danpost

2021/3/26

#
GLOBALHUNT wrote...
I am trying to create a game in which a rocket moves up when we press the "W" button and when it reaches the top of the screen/world the world background will change and the rocket changes its location to the lower part so as to show the rocket has passed this layer of the earth and is going through the other one
The body of your post should give details about the subject in your title. Here, speed is not mentioned at all in the body -- nor is there anything about a variable nor the showing of any value. Furthermore, no related codes are provided with an attempt to solve your issue.
GLOBALHUNT GLOBALHUNT

2021/3/27

#
danpost wrote...
GLOBALHUNT wrote...
I am trying to create a game in which a rocket moves up when we press the "W" button and when it reaches the top of the screen/world the world background will change and the rocket changes its location to the lower part so as to show the rocket has passed this layer of the earth and is going through the other one
The body of your post should give details about the subject in your title. Here, speed is not mentioned at all in the body -- nor is there anything about a variable nor the showing of any value. Furthermore, no related codes are provided with an attempt to solve your issue.
Sorry I was busy so i entered this bymistake ok so i wanna know how can we add a variable showing the speed of the rocket?
Gbasire Gbasire

2021/3/27

#
you mean, a text displaying the speed of the rocket on screen, or creating a variable to modify the rocket's speed ?
You need to login to post a reply.