Announcement

Collapse
No announcement yet.

Need help with Camera stopping at the right time

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Apologies, that was only limiting the upper x.

    This clamp should work ok though:
    Click image for larger version

Name:	CamBlockTest2_1.png
Views:	1
Size:	103.2 KB
ID:	1093067
    Last edited by eanandroid; 11-09-2015, 10:38 PM.

    Leave a comment:


  • replied
    I'm toying around with paper2d at the moment too so thought I'd have a quick go.

    This works for me (clamping method):
    Click image for larger version

Name:	CamBlockTest.png
Views:	1
Size:	179.7 KB
ID:	1093062

    Leave a comment:


  • replied
    So now the camera stops at the right place but it doesn't make Simon able to re-center the camera when he walks back again.

    Leave a comment:


  • replied
    Originally posted by Distul View Post
    You can also use camera blocking volumes and use sweep when moving the camera. This would work best if camera was an independent actor.

    Clamping would be much easier however if your level is only going to be left/right and not mult-story
    I tried to use the Camera Blocking Volume but nothing happened. The camera just goes right through it. I think I'll try the clamp method.

    Leave a comment:


  • replied
    You can also use camera blocking volumes and use sweep when moving the camera. This would work best if camera was an independent actor.

    Clamping would be much easier however if your level is only going to be left/right and not mult-story
    Last edited by Distul; 11-08-2015, 10:49 PM.

    Leave a comment:


  • replied
    Add a "clamp" node that clamps the X value of the vector to the minimum/maximum X coordinate you want the camera to be able to move to.

    Leave a comment:


  • started a topic Need help with Camera stopping at the right time

    Need help with Camera stopping at the right time

    I am learning Paper2D by recreating parts of Castlevania for the NES.

    While doing this it appears that I can't really figure out how to make the camera work correctly. It needs to stop following Simon at a certain point so that he can walk to the edge of the screen without being followed in both Left and Right directions.

    But I don't know how to do that. I am currently using the default 2D Character setup from the 2D Scroller example.



    Click image for larger version

Name:	9f0d10b6bd.png
Views:	1
Size:	9.4 KB
ID:	1166592

    I made one modification to the camera which you can see below. The modification makes the camera not follow Simon in the Z Axis:

    Click image for larger version

Name:	30366183ae.jpg
Views:	1
Size:	111.3 KB
ID:	1166593
Working...
X