The Daily Click ::. Forums ::. Klik Coding Help ::. 2p arcade 'shooting' game, Scrolling Q
 

Post Reply  Post Oekaki 
 

Posted By Message

curtaineater



Registered
  12/06/2003
Points
  23
3rd July, 2003 at 00:08:18 -

Im using the standard MMF and have a game that is kinda like an arcade shooter, you move 8 dir. and have close and far attacks. There are 2 players too. How can i get it to scroll as you walk, letting the screen advance while moving in the correct direction (id like to have it change throughout the level if its not too complicated, so its not always up. but if its too hard, ill skip it), without having it mess up with the two characters. Ex. Not having one fall off the screen, and not having them 'bounce' or 'shake' if they are at the bottom and the other char tries to move the screen upwards. Any help would be greatly appreciated! Right now i just have it as auto-scroll, but thats not as fun...

PS. A good ex. of a game like this is Pocky & Rocky (2) for snes.

 
n/a

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
3rd July, 2003 at 00:11:24 -

Normal Scroll:
Always - Centre screen position on one of the players. Now for two players, if you want to centre it between them.

Two player scroll(Same Screen):
Always - Centre screen x - player1.x + player2.x / 2
- Centre screen y - player1.y + player2.y / 2

-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

Callebo

Possibly Insane

Registered
  10/08/2008
Points
  3988

VIP MemberPS3 OwnerGOTM AUGUST - 2009 - 3RD PLACE!GOTM OCTOBER- 2009 - 2ND PLACE
16th January, 2009 at 09:42:27 -


Originally Posted by Assault Andy
Normal Scroll:
Always - Centre screen position on one of the players. Now for two players, if you want to centre it between them.

Two player scroll(Same Screen):
Always - Centre screen x - player1.x + player2.x / 2
- Centre screen y - player1.y + player2.y / 2

-Andy



Actually, for two player it should be:
Always - Centre screen x - ( player1.x + player2.x ) / 2
- Centre screen y - ( player1.y + player2.y ) / 2

 
...Atleast thats what Batman told me!

dndfreak



Registered
  11/01/2009
Points
  650
18th January, 2009 at 19:15:39 -

Wow CB, he hasn't been here for over 3,000 hours.

 
Vegeta? What does your mother say about my power level?

ITS OVER 9000!!!
   

Post Reply



 



Advertisement

Worth A Click