going from a scrollable position to a nonscrollable position?

Ran into a little problem today, i want to spawn an item into a scrollable layer and then have that item interpolate to a nonscrollable layer(the HUD). Im making an rpg and when the player collects a resource, I want to spawn the item from the node(scrollable layer) and interpolate its position to your inventory which is a nonscrollable layer. the problem is the grid coordinates (350,820) mean something different to the nonscrollable layer than to the scrollable layer..
Any help would be greatly appreciated!

Best Answer

  • kobayaashikobayaashi Posts: 143
    Accepted Answer

    Would it not be possible to gauge the position of the resource relative to the current camera position, interpolate to the location the resource would appear on the hud, then spawn a version on the hud layer while destroying the original? Or am I way off base..?

Answers

Sign In or Register to comment.