The Daily Click ::. Forums ::. Klik Coding Help ::. Ultima V Like scrolling
 

Post Reply  Post Oekaki 
 

Posted By Message

EleXor



Registered
  21/01/2003
Points
  269
30th July, 2004 at 03:46:54 -

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.

 
n/a

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
30th July, 2004 at 14:18:07 -

do you mean a scrolling background? if so then you need the background system object. then check out circy's tutorial on it.

 
My signature is never too big!!!

Agent_K64



Registered
  17/03/2003
Points
  69
30th July, 2004 at 19:08:32 -

Why not use regular scrolling?

 
Evil omg~!

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
30th July, 2004 at 20:04:13 -

In that case, can you just scroll the screen as normal (but in jumps, as you've described there)?

So, when player moves left (and isn't blocked) -

Set player position to X Player - 32
Set window position to X Player

Or you could use "Always -> Set window position to position of Player" in a separate event.

 
http://www.davidn.co.nr - Games, music, living in America

EleXor



Registered
  21/01/2003
Points
  269
31st July, 2004 at 05:06:27 -

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.

Image Edited by the Author.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
31st July, 2004 at 12:06:02 -

I'm not sure what you're talking about, but I suggest a sub app.

 
n/a

EleXor



Registered
  21/01/2003
Points
  269
2nd August, 2004 at 07:59:34 -

Yeah I was about to make 3 apps: The game, the message list and the stats. Would require lots of work. See that screenshot below to get the idea.

 
n/a

EleXor



Registered
  21/01/2003
Points
  269
4th August, 2004 at 05:55:47 -

Bumpy dumby

 
n/a

DistantJ [FZ Games]



Registered
  02/08/2004
Points
  855
4th August, 2004 at 06:03:42 -

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).

 
http://www.fzgames.com

EleXor



Registered
  21/01/2003
Points
  269
4th August, 2004 at 07:03:17 -

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?

Image 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.

Image Edited by the Author.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click