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

2015/10/28

I need help with getting the actor to follow a line

bosciw bosciw

2015/10/28

#
I need assistance with making the actor follow a line and turn when I press the arrow keys, but only when I get to a junctions, not when I press the arrow keys and not go off into nothingness. Also, I need help with having the character to stay still, but the world moves to make it look like the actor is moving. How large would the world be???
danpost danpost

2015/10/28

#
For the second question, you need a scrolling system. There are quite a few support classes within scenarios on the site that can assist with this (I have several -- for different types of scrolling). The size of the world is only limited to the amount of CPU time required to scroll the world. That is -- the larger the world, the more time, exponentially, that is needed to redraw the world. If the world is too large, scrolling may cause the running of the scenario to exhibit lagging. For the first question, your code, which will show how the actor follows the lines, how the lines are arranged and/or displayed, etc., is required to determine how to produce the behavior you want.
You need to login to post a reply.