Forum Topic: "camera"

(81 views • 7 replies)

This topic is 1 page long.

<< < > >>
None

Laoye

Reply To Post Reply & Quote

Posted at: 11/30/08 07:09 PM

Laoye NEUTRAL LEVEL 08

Sign-Up: 03/08/07

Posts: 70

I'm making an action game and I just want to know how to stop the player from moving out of the camera region so that enemies can keep re-spawning for a certain period. And after the player has defeated a certain number of enemies, the camera resumes side-scrolling once again.

Thanks.

BBS Signature

None

OctoFlash

Reply To Post Reply & Quote

Posted at: 11/30/08 07:17 PM

OctoFlash DARK LEVEL 17

Sign-Up: 12/02/06

Posts: 839

more details please. i (we?) don't get it!

BLAM DAMN SPAM. That rhymes! So what do we learn?
the right answer for the most bbs-posts: THE FREAKIN' COLLAB RULES!!!

BBS Signature

None

Laoye

Reply To Post Reply & Quote

Posted at: 11/30/08 07:24 PM

Laoye NEUTRAL LEVEL 08

Sign-Up: 03/08/07

Posts: 70

Ok, I want it to work in the same fashion "Dad 'n Me" works: http://www.newgrounds.com/portal/view/25 4456

That is, you move forward, fight, then move forward again. In that game, you cannot progress forward until a certain number of enemies have been defeated. Is that a better explanation?

Click on the link and play the game to fully understand what I mean.

BBS Signature

None

OctoFlash

Reply To Post Reply & Quote

Posted at: 11/30/08 07:29 PM

OctoFlash DARK LEVEL 17

Sign-Up: 12/02/06

Posts: 839

i know that game and finally i know what you mean.
this kind of game is called sidescroller.

okay. so you want to make one? and your problem is that you want to make the camera stop moving when enemies are in the screen? are you using a vCam or do you move the background?

BLAM DAMN SPAM. That rhymes! So what do we learn?
the right answer for the most bbs-posts: THE FREAKIN' COLLAB RULES!!!

BBS Signature

None

Laoye

Reply To Post Reply & Quote

Posted at: 11/30/08 07:38 PM

Laoye NEUTRAL LEVEL 08

Sign-Up: 03/08/07

Posts: 70

No I am not using a Vcam as I dont even know what that is! lol. I am using a scrolling background. Is using a Vcam better?

BBS Signature

None

OctoFlash

Reply To Post Reply & Quote

Posted at: 11/30/08 07:41 PM

OctoFlash DARK LEVEL 17

Sign-Up: 12/02/06

Posts: 839

i don't think is. since it will be a long background it's better to make it scrolling i think. i'm also making a sidescroller at the time and i'm also using the scrolling BG.

a vCam is some kind of camera in flash. maybe you should go check some threads about it, it's a very useful tool.

so you are moving the BG? okay. how exactly do you do this?

BLAM DAMN SPAM. That rhymes! So what do we learn?
the right answer for the most bbs-posts: THE FREAKIN' COLLAB RULES!!!

BBS Signature

None

Laoye

Reply To Post Reply & Quote

Posted at: 11/30/08 07:54 PM

Laoye NEUTRAL LEVEL 08

Sign-Up: 03/08/07

Posts: 70

the way I move my background is pretty simple: if the player presses "RIGHT" , then move the background left at a particular speed and vice versa.

Or do you want me to copy and paste the code?

BBS Signature

None

OctoFlash

Reply To Post Reply & Quote

Posted at: 12/1/08 02:21 AM

OctoFlash DARK LEVEL 17

Sign-Up: 12/02/06

Posts: 839

yeah maybe posting the code could be helpful..

BLAM DAMN SPAM. That rhymes! So what do we learn?
the right answer for the most bbs-posts: THE FREAKIN' COLLAB RULES!!!

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 08:37 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!