A
achmoye
Guest
Hey guys,
I'm stuck at this problem :
I'm doing a Roguelike and I want the player to go randomly through some pre-generated maps.
I got one map ready (just a straight path from left to right) so when player hits the right end of the path I make him spawn in the next room where the blue circle is (spawn position)
As the room is duplicated I expect it to behave the same and keep follow the player with camera but it doesn't.
Also, the Player object is persistent, and rooms too.
Do I need to update the camera in new rooms somehow ?
Following camera works like a charm...until I try to duplicate the room !
The viewport I use :
Camera : 1024*768
Viewport : Same as camera
Object following : obj_player
Borders : same as camera
Horizontal, vertical speed : -1 (follow player)
I'm stuck at this problem :
I'm doing a Roguelike and I want the player to go randomly through some pre-generated maps.
I got one map ready (just a straight path from left to right) so when player hits the right end of the path I make him spawn in the next room where the blue circle is (spawn position)
As the room is duplicated I expect it to behave the same and keep follow the player with camera but it doesn't.
Also, the Player object is persistent, and rooms too.
Do I need to update the camera in new rooms somehow ?
Following camera works like a charm...until I try to duplicate the room !
The viewport I use :
Camera : 1024*768
Viewport : Same as camera
Object following : obj_player
Borders : same as camera
Horizontal, vertical speed : -1 (follow player)
Attachments
-
20.4 KB Views: 3