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

2019/4/24

MAKE ACTORS MOVE IN THE ORDER I WANT

gdrgnxxi gdrgnxxi

2019/4/24

#
Hello. I have game where there is a chef which will flash an order then after that, the ingredients will slide down. The ingredients then can be clicked to left of right. Do you happen to know how I can make them move in that order?
gdrgnxxi gdrgnxxi

2019/4/24

#
like for example, if i have an actors with their designated movement, how can i make them move in the order i mentioned above? because when I run it, they all move at the same time :(
Nosson1459 Nosson1459

2019/4/24

#
gdrgnxxi wrote...
The ingredients then can be clicked to left of right.
could you please explain what you mean
gdrgnxxi gdrgnxxi

2019/4/24

#
I have a game where in this will be the flow: 1. Chef will enter and a dialogue text will flash on the screen (actor chef will show the food order, ex. burger) 2. The ingredients of the order then (actors: bun, burger patty, lettuce tomatoes) will slide down the screen wherein the player can click the key arrow left if the ingredient is part of the order and key arrow right if not. The problem is that, I don't know how can i move these many actors in order. I want the chef to show first then disappear. Then, the ingreidents then show, then the player can now play. When i run my code, all actors move at the same time.
danpost danpost

2019/4/24

#
gdrgnxxi wrote...
all actors move at the same time.
Maybe you should have your world deal with the key presses and inform the "current" ingredient how to respond. This would most probably require that you have a list or array of the ingredients to iterate through as the key presses are detected.
You need to login to post a reply.