Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

Space Shooter Camera Help

Archive: 5 posts


Hello, I'm currently working on a side scrolling space type shooter. So far everything I've got everything working fine. The collisions work for both bullet/enemy and enemy/hero, and the camera follows the path that I set for it.

The only thing I'm having a problem with is keeping the hero constrained to the camera zone. As soon as I leave the camera area, the camera focuses on the hero, and I loose track of the game camera.

Any solutions or suggestions would be appreciated. Thanks
2011-09-06 19:18:00

Author:
DarkDedede
Posts: 672


Maybe you could make the camera zone bigger or attach a player sensor to the camera, and make the sensor as big as you want2011-09-06 21:50:00

Author:
smartboy494
Posts: 34


The only thing I'm having a problem with is keeping the hero constrained to the camera zone.
You could either use materials and literally box the player in, or you could use a couple of tags or impact sensors to establish boundaries around the screen that when exceeded cut off player input to the appropriate mover(s)/generate a signal that moves the player in the opposite direction. Another option is to use string and tether the player to the camera.

This tutorial may help: https://lbpcentral.lbp-hub.com/index.php?t=56251
2011-09-06 22:42:00

Author:
Ayneh
Posts: 2454


Try having a follower to follow the player.2011-09-06 22:58:00

Author:
zzmorg82
Posts: 948


Try having a follower to follow the player.

I want the player to follow the camera, not the other way around.

Thanks all. I think I've got a pretty good idea how to solve the problem.
2011-09-07 04:25:00

Author:
DarkDedede
Posts: 672


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.