DefinitelyHumanDude's Forum Posts

  • 5 posts
  • Thank's for your help. I had to find a different solution however I didn't know anything about deltatime and now I know how important it is so thanks bro you're a real one

  • You are probably right about the MoveTo behavior being more convenient but the else statement is what I currently have in place and it is part of the problem

    This is the current code. When the else is triggered it immediatley disables the camera lock causing the "ScrollX is true" condition at the top to trigger bringing the camera to place instantly rather than smoothly

  • I have a player with a camera that follows him across rooms until he overlaps an endcap object at the end of the room which locks the camera to not see past the wall. This works great, but the problem is the transition out of the endcap back into the normal room.

    When you leave the endcap the camera needs to return to the correct position to resume following the player, which it does, but very suddenly and ugly.

    The ideal solution would be some kind of condition that can detect exactly when the varible that causes the camera to lock at the endcap goes from true to false so I could smoothly transition with a lerp.

    However, I don't think this exists and an else won't work because it's constant like "If your not overlapping the endcap at anytime, constantly lerp the camera breaking the scrolling" rather than what I need which is "At the moment the 'lock camera' variable becomes false, lerp the camera back in place."

    If anyone has a suggestion or can help that would be lit.

  • that didn't fix it but it did just lead me to actually find a fix. i used pick instance overlapping point and just set the point to the mouse position. thanks for the help bro

  • i have a 3dshape and i want its size to sine when the mouse is over it. it works until the mouse goes strait to another instance, which causes both to sine not just the one the mouse is over. the code is like this:

    if cursor is over 3dshape - set sine enabled

    else - set sine disabled, set size to 16 x 16

    the problem is that the condition is true if any instance is under the mouse, so both instances sine if you hover over one and then the other. I want to be able to effect only the one the mouse is on. help please

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • 5 posts