Well I'm trying to make Ultima V like scrolling, the player is on the center of the screen, but the enviroment (trees and such) are moving. I tried like:
-Player presses left
-Left detector isn't overlapping Tree
-Set tree position to x,32 y,0 at tree
Well it works, but it will require a lot of work to make it like that! So it would be dull to make it that way.
One of my friends said that this can be done by array. I have no clue how to use it either.
Ummm the idea is to keep player always in center, and yes, scrolling backround. I won't be using normal scrolling since the screen looks like this:
http://swut.net/euo/img/ss/01.gif
This is the type of screen, and, reqular scrolling would be good. But I don't bother to make list, character stats & counters, health bars and such follow the scrolling.
Use regular scrolling. Programming a fake scroll engine is a very awkward thing to do and often makes the game physics rather bad.
Here are 2 things you can do, pick which you prefer.
1. Make the border and text and all non-scrolling things active objects, right click it and go to "properties > scrolling", and un-check "follow the playfield". That way it can scroll behind the border and the border will stay still.
Or
2. Create your game/levels in different frames from the main frame(or a completely different application), and use global values and scores and such(just check 'share global values' and all those when starting the sub-application) to make them communicate with each other. Then you can change level/frame by making the subapp change frame in the event editor. This would be the more professional option, and would save some memory too(Also you wouldn't have the trouble of the border disappearing and reappearing when changing level, and you can use transitions to only take effect in the window, Shadowgate style).
Well I used regular scrolling. BUT, I need the character to stay always exactly at the center of the screen but window would scroll too. Any ideas?
Edited by the Author.
I need it like:
-Player presses right and it's ok to go = then scroll window player x postion - 32
and the player should be ALWAYS on center.