This site requires JavaScript, please enable it in your browser!
Greenfoot back
Tioma7
Tioma7 wrote ...

2013/11/2

Top down shooter vertical screen scrolling.

Tioma7 Tioma7

2013/11/2

#
Hello everyone, i started making a top down shooter game, something like gta 2, and now im little bit confused of making scrolling screen with my character in the middle.
danpost danpost

2013/11/2

#
Tioma7 wrote...
Hello everyone, i started making a top down shooter game, something like gta 2, and now im little bit confused of making scrolling screen with my character in the middle.
Is there a question here? What part are you confused about? What have you tried?
Tioma7 Tioma7

2013/11/2

#
I didn tryed anything yet, i need to know how it is possible to make screen moving around the map
Tioma7 Tioma7

2013/11/2

#
danpost wrote...
Tioma7 wrote...
Hello everyone, i started making a top down shooter game, something like gta 2, and now im little bit confused of making scrolling screen with my character in the middle.
Is there a question here? What part are you confused about? What have you tried?
I didn tryed anything yet, i need to know how it is possible to make screen moving around the map
danpost danpost

2013/11/2

#
Scrolling is the controlled changing in the background image of the world canvas and movement of actors in the world with respect to the main character. Since your main character is to remain in the middle, the easiest way to control the scrolling is by letting the main character move like a normal actor with user control, but then have the world move the character back to the middle and adjust the background image and move the other actors using the same offsets. A check must be in place for the background image reaching the edge of the world which would stop the scrolling. Also a check must be in place for the main actor reaching the edge of the world after the background image has reached that edge. There are several scrolling engines and support classes on the site that you could look at or even implement. Just search 'scroll'.
Tioma7 Tioma7

2013/11/2

#
danpost wrote...
Scrolling is the controlled changing in the background image of the world canvas and movement of actors in the world with respect to the main character. Since your main character is to remain in the middle, the easiest way to control the scrolling is by letting the main character move like a normal actor with user control, but then have the world move the character back to the middle and adjust the background image and move the other actors using the same offsets. A check must be in place for the background image reaching the edge of the world which would stop the scrolling. Also a check must be in place for the main actor reaching the edge of the world after the background image has reached that edge. There are several scrolling engines and support classes on the site that you could look at or even implement. Just search 'scroll'.
Still confused about making this :D
Tioma7 Tioma7

2013/11/2

#
I know how to move screen but i dont know how to make screen repaint it self every step, can anyone help?
Tioma7 Tioma7

2013/11/2

#
Please if anyone can write a simple programm that scroll screen over a map controller by arrow keys!
askgriff askgriff

2013/11/2

#
That's a great idea. Come up with an idea for a game and then ask someone to write it for you. THEN publish it as your game. I like it.
Tioma7 Tioma7

2013/11/3

#
askgriff wrote...
That's a great idea. Come up with an idea for a game and then ask someone to write it for you. THEN publish it as your game. I like it.
I dont ask write a whole game, i want to understand how to make scrolling screen :)
askgriff askgriff

2013/11/3

#
But you should always start your game -- get the world set up, the variable declared, the graphics set, etc. Have you started looking through any of the "scrolling world" scenarios? There are some good ones.
Tioma7 Tioma7

2013/11/3

#
askgriff wrote...
But you should always start your game -- get the world set up, the variable declared, the graphics set, etc. Have you started looking through any of the "scrolling world" scenarios? There are some good ones.
I have seen a lot of scrolling scenarios and i dont want just copy them and paste i want to understand how its made, and i didnt get it :(
You need to login to post a reply.