The Daily Click ::. Forums ::. Klik Coding Help ::. Scrolling problem
 

Post Reply  Post Oekaki 
 

Posted By Message

tobbe agren



Registered
  14/06/2003
Points
  14
8th July, 2003 at 15:07:24 -

Hi, I needsome help with my game. I want the screen to scroll to the right nomatter how the character moves. I also want that if he touches the screen, he is pushed forward to keep up with the scroll.
If you understand this, bless you.
Thanks in advance/Tobbe

 
n/a

Hayo

Stone Goose

Registered
  15/08/2002
Points
  6946

Game of the Week WinnerHas Donated, Thank You!VIP MemberGOTM 3RD PLACE! - APRIL 2009Weekly Picture Me This Round 27 Winner!Weekly Picture Me This Round 41 Winner!Weekly Picture Me This Round 45 Winner!
8th July, 2003 at 15:18:15 -

I dont understand it but i am stupid

 
www.hayovanreek.nl

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
8th July, 2003 at 15:28:13 -

I am confused???? Banana or cream with two lumps?

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

Pkeod

Oontz Oontz Oontz

Registered
  19/11/2002
Points
  93

VIP Member
8th July, 2003 at 15:34:44 -

here is an option

...make a little black dot or something move right and have it so that it is always scrolling on it...

then create a black bar that has the option (follow background) or what ever unselected... then put that bar on the left side of the play field... (make sure that it can touch the bottom and the top of the screen verticly)

then add the code that when the player is collision with the black bar the player looks right and its speed is set to a (like 25) and its movement is started... or just make him bounce...

what ever, you obviously havnt played around that much with your program... I advize you to do that! o_0

or not, you can always ask questions that dont make sense here...

then agin or not...

 
Faerie Solitaire - Get it now:

http://www.create-games.com/download.asp?id=7792

Hayo

Stone Goose

Registered
  15/08/2002
Points
  6946

Game of the Week WinnerHas Donated, Thank You!VIP MemberGOTM 3RD PLACE! - APRIL 2009Weekly Picture Me This Round 27 Winner!Weekly Picture Me This Round 41 Winner!Weekly Picture Me This Round 45 Winner!
8th July, 2003 at 16:27:16 -

spiderhead = confusedhead

 
www.hayovanreek.nl

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
8th July, 2003 at 17:06:06 -

fishhead = smart...head (bet you thought i was gonna say arse dint ya??? well i didnt!)


Another way to do it, wich includes pharoh's bar method is this:

Repeat while player is overlapping left bar
= set X Co-Ordinate of player to X( "Player") + 1

To make the screen constantly move, make another active object( i'm calling it "screen mover") and set its movement type to bouncing ball/path movement (you can loop th path movement)
And set its speed to the speed you want the screen scrolled at.

Then add these events:
Always
= Center window at 0,0 from Screen Mover

Then you shouldn't be able to leave the screen on the left.

For the right, create another bar wich has follow playfield unchecked

And just add these events

Repeat while player is overlapping Right bar
= set X Co-Ordinate of player to X( "Player") - 1

He should always be in the scrolling area that way (I havent tried it, so it may not work)

 
My signature is never too big!!!

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
8th July, 2003 at 17:07:25 -

oops, it should be X ("Player") not X("Player") (stupid auto smilies!)

 
My signature is never too big!!!

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
9th July, 2003 at 01:55:30 -

Another way you could do the push scroll is:

If player x <= X Left Frame (Left visible Edge) then:

player x = player x + 1


Joe: Scorpion E - "Please start at..." Should that be "Please stare at?"

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

-Messiah-



Registered
  26/06/2003
Points
  220
9th July, 2003 at 03:19:02 -

hah! cool i had the same trouble yesturday!
bur Danne helped me, and by the way Joe? were are you?

 
What!?, a what!?.. Omg.. They'r' WASTED!

Daniel[Crazy_Productions]

Possibly Insane

Registered
  29/12/2002
Points
  2505
9th July, 2003 at 07:16:49 -

Mattias you didnt have the same problem

 
Beware of life ...so far noone have survived it.......
   

Post Reply



 



Advertisement

Worth A Click