The Daily Click ::. Forums ::. Klik Coding Help ::. help on screen to screen scrolling - like the dizzy games
 

Post Reply  Post Oekaki 
 

Posted By Message

Cybo Games



Registered
  22/07/2005
Points
  114
29th July, 2005 at 03:53:34 -

hi, i have made afew dizzy games, but not known how to event most of the tricky stuff. as most of you out there, who can do all this, please help me?

i want to do the screen to screen scrolling, like on the dizzy games, so it switches from one to the other!

at the moment, i have been doing the scrolling like this:

"dizzy" is getting closer than 1600 pixels from windows edge!

then

center display at (-1,2) from "dizzy"

can some please help!!

thanks

matthew

 
Check out our downloads

Nuklear41

Possibly Insane

Registered
  12/01/2008
Points
  2395

VIP MemberPS3 OwnerWii Owner
29th July, 2005 at 04:24:21 -

You could always do

*Always*
center screen around active

there.


what is a dizzy game?

and is this in mmf?

 
Image

Cybo Games



Registered
  22/07/2005
Points
  114
29th July, 2005 at 04:37:57 -

thanks, ill try that.

it is in the games factory, would that matter, i dont think so actually as they use the same coding events!

the dizzy games were made in the 80's and 90's by codemasters!

 
Check out our downloads

Cybo Games



Registered
  22/07/2005
Points
  114
29th July, 2005 at 04:46:33 -

oops, looks like i dont know how to center screen around active



 
Check out our downloads

Nuklear41

Possibly Insane

Registered
  12/01/2008
Points
  2395

VIP MemberPS3 OwnerWii Owner
29th July, 2005 at 05:32:43 -

Do center display relative to active (0,0)

Well that is what I would do In mmf. They are mostly the same.

Image Edited by the Author.

 
Image

hishnak



Registered
  18/04/2004
Points
  994
29th July, 2005 at 08:12:58 -

Here's a simple way to do scrolling...I don't know if its "dizzy " or whatever you were calling it

fist of all, create a an object called camera. then do the following events

Always---Set X position to X of (camera)/2+ X of (player)
Set Y position to Y of (camera)/2+ Y of (player)
Center display at (0,0) from camera

Then set the camera object to be invisible.



 
I'm feeling a bit wella

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14560

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
29th July, 2005 at 19:03:20 -

he means scrolling one screen to the left, right, up or down. only instantly.


try centering the screen relative to the left border, when dizzy hits a border (make 4 of them up, down, left, right side of the screen) then sort out the extra distance.

Thats how i did it although there are bound to be better ways.


 
.

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
30th July, 2005 at 06:00:43 -

You'll need a separate "scroller" object (made invisible) to centre the screen around, and a "target" object (also invisible) for the scroller to always follow. When the player collides with a border, the target should move to the centre of the new screen.

That's a vague description - it may be possible with fewer objects, but that's how I would do it off the top of my head.

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

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  50117

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
31st July, 2005 at 11:30:39 -

It depends on the resolution of your screen. Say, for example, you were using a resolution of 320x240, you would have to use numbers which are half the size of the resolution. For example:


--------------------------------------

Only One Action While Event Loops +
X Position of Player => X Right Frame:

----Set X Window to X Player +160
----Set X Position of Player to X Position +2


--------------------------------------

Only One Action While Event Loops +
X Position of Player <= X Left Frame:

----Set X Window to X Player -160
----Set X Position of Player to X Position -2

--------------------------------------

Only One Action While Event Loops +
Y Position of Player => Y Bottom Frame:

----Set Y Window to Y Player +120


--------------------------------------

Only One Action While Event Loops +
Y Position of Player <= Y Top Frame:

----Set Y Window to Y Player +120

 
n/a

Cybo Games



Registered
  22/07/2005
Points
  114
31st July, 2005 at 12:26:02 -

thank you ever so much, ill try all of those

thanks



 
Check out our downloads
   

Post Reply



 



Advertisement

Worth A Click