The Daily Click ::. Forums ::. Klik Coding Help ::. scrolling
 

Post Reply  Post Oekaki 
 

Posted By Message

Xio



Registered
  1/21/2008
Points
  218
20th August, 2008 at 3:35:16 AM -

http://s47.photobucket.com/albums/f171/Xiosolo/?action=view¤t=help.flv

i want to know how to do that scrolling in this video and i already asked the guy that made that game another thing and i dont want to fill his email with questions


f.y.i. the game is called

I Wanna Be The Guy by Kayin

 
Squigy my blob

maker of music
8-bit music though

Jon C-B

I create vaporware

Registered
  4/23/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
20th August, 2008 at 3:56:51 AM -

No idea but I wanna know too

 
n/a

The Cecilizer

You Done Got Cecilized

Registered
  3/19/2005
Points
  1602

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!Computer
20th August, 2008 at 4:08:14 AM -

just have values for the cameras x and y position. and when you go out of the visible play area. set the new x and y camera positions.

 
Image

>> http://www.cecilectomy.com <<

Xio



Registered
  1/21/2008
Points
  218
20th August, 2008 at 4:32:38 AM -

can you explain a bit more its confusing


 
Squigy my blob

maker of music
8-bit music though

Xio



Registered
  1/21/2008
Points
  218
20th August, 2008 at 5:31:10 AM -


Originally Posted by just cecil
just have values for the cameras x and y position. and when you go out of the visible play area. set the new x and y camera positions.




wait, so when he gets out of the play area new center screen thing? ugh

 
Squigy my blob

maker of music
8-bit music though

The Cecilizer

You Done Got Cecilized

Registered
  3/19/2005
Points
  1602

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!Computer
20th August, 2008 at 5:46:45 AM -

http://legendkpr.startlogic.com/files/scrollexample.zip

 
Image

>> http://www.cecilectomy.com <<

The Cecilizer

You Done Got Cecilized

Registered
  3/19/2005
Points
  1602

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!Computer
20th August, 2008 at 5:51:13 AM -


Originally Posted by Xio

Originally Posted by just cecil
just have values for the cameras x and y position. and when you go out of the visible play area. set the new x and y camera positions.




wait, so when he gets out of the play area new center screen thing? ugh



its not THAT difficult. the example is only 7 events. the scrolling is 6 of them. its really THAT EASY.

 
Image

>> http://www.cecilectomy.com <<

Xio



Registered
  1/21/2008
Points
  218
20th August, 2008 at 5:59:03 AM -

oooo ok i get it thanks oh and i like the little guy lol

 
Squigy my blob

maker of music
8-bit music though

The Cecilizer

You Done Got Cecilized

Registered
  3/19/2005
Points
  1602

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!Computer
20th August, 2008 at 6:06:40 AM -

that scrolling can be modified to be more like zelda scrolling. when you get to the edge of the screen, instead of going directly to the new screen center, you can stop everything else, scroll the center of the screen to the new one then release everything again.

a bit more complex and requires you to activate and deactivate groups. also recommended you not use any built in movements. otherwise youd have to stop all movements as well. then start them again appropriately.

im glad you liked the guy

 
Image

>> http://www.cecilectomy.com <<

columbo borgi :C



Registered
  12/7/2003
Points
  288

VIP Member
20th August, 2008 at 10:46:08 AM -

http://borgi.extra.hu/scrollexample.mfa

here is a bit more simple code for that scrolling, now tha scrolling takes only 1 event. i hope it helps.

 
:C

The Cecilizer

You Done Got Cecilized

Registered
  3/19/2005
Points
  1602

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!Computer
20th August, 2008 at 11:39:43 AM -

yeah im always afraid to use that cause of the division. ive done things like that before (snap to grid) and it didnt quite work for some reason. i hate how mmf utilizes floats. i dont even bother anymore.

 
Image

>> http://www.cecilectomy.com <<

Jon C-B

I create vaporware

Registered
  4/23/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
21st August, 2008 at 2:48:41 PM -

Borgi's way worked fine in my test app.

 
n/a

The Cecilizer

You Done Got Cecilized

Registered
  3/19/2005
Points
  1602

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!Computer
21st August, 2008 at 3:06:58 PM -

i know it works. i wouldve done that but mmf is stupid sometimes and im discouraged to use methods that rely on floated values to be rounded to the nearest integer. i wasnt saying he was wrong

 
Image

>> http://www.cecilectomy.com <<
   

Post Reply



 



Advertisement

Worth A Click