Hi anarchist,
Please kindly view these questions:
What you need to do is have an if() statement inside the while loop, which will check whether the tree has moved too much, and reset its X position to 0.
1. Does this script express your point?while (treebg1.X<800+512)
{
{
}
}
I tried it and it worked! The tree entity (treebg1) started racing across the screen repeatedly. However I have some doubts, if it is okey from your point of view.
2. I tried to think how this script could be applied to other tree entities and a house entity. Will the following approach be correct?while (treebg1.X<800+512 + treebg2.X<800+336)
{
{
}
{
}
}
3. The code from the previous question seems to work, yet entity sprites behave oddly - they sometimes appear from the left edge of screen as if right from the air, from nowhere (not from behind the left edge). And sometimes first tree joins second tree on the run like the engine doesn't manage to "draw" it in time
Well, of course, WME is not the reason, and I blame my imperfect math knowledge.
Is there a way to improve this scenario somehow to make the entities emerge more naturally?4. In terms of question 3 I thought maybe if there was a way to only display a central area of the scene background, then the tree entities had enough time and space to appear at their initial positions while we don't see them, move across the visible scene area and then reach the limit positions in the second area that we don't see. Does that make sense? If yes,
how do we display the central part of 2400 X 600 background? What can I make in SceneEdit or in scene_init.script?Hope this screen will illustrate what I mean:
THANK YOU, anarchist! The scene starts getting closer and closer to what it was thought to be, yet there are some things I can't resolve without help from the community.