The Daily Click ::. Forums ::. Klik Coding Help ::. dizzy lost woods
 

Post Reply  Post Oekaki 
 

Posted By Message

cielx



Registered
  11/08/2004
Points
  332
2nd November, 2004 at 15:57:01 -

im having trouble creating that awesome scrolling engine in lost woods dizzy! i know its pretty simple but its still really buggy. anyone wanna post the exact coding??

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
2nd November, 2004 at 17:07:40 -

i had to work it out,

but basically when dizzy touches the border you centre the x or y position of the window relative to the red border object. + or - a certain amount. try this until its scrolls enough. easy, but takes a while.

make it

 
.

cielx



Registered
  11/08/2004
Points
  332
2nd November, 2004 at 17:14:44 -

cheers dude

 
n/a

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  48488

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
2nd November, 2004 at 18:00:14 -

Pleh. It depends on the resolution. Say you have a res. of 320x240... you'd do this:


x player = x right frame : set x window to x + 160
x player = x left frame : set x window to x - 160

y player = y top frame : set y window to y - 120
y player = y bottom frame : set y window to y + 120

That's the method I'd use. Obviously to stop flickering between frames you'd have to shuffle the player along a little. This method basically halves the x and y of the resolution and adds / subtracts the window position to the position PLUS the half value of the resolution... err... hope you understand that You don't necessarily need any active objects whatsoever




 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
9th November, 2004 at 15:47:02 -

It gets a little comlicated with the borders and the objects matching up perfectly.

 
.
   

Post Reply



 



Advertisement

Worth A Click