Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 1 Support › Is it possible to move 2 instances of an entity at the same time?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5894

    omescroll

    Hello there,

    I am currently trying to develop my first game using VPlay. I am stuck, and need help. I created 2 instance objects from an entity, and displayed this on my scene. The problem now it that I want to be able to move both instances at the same time, such that, if I move the first to the left, the second should automatically follow. I have tried creating a function to achieve this, but fail. I want to find out if there is some pre-defined function in VPlay to achieve this? Otherwise, if someone can help with a sample code, I will greatly appreciate.

    #5896

    Alex
    Felgo Team

    Hi,

    are there only those 2 entities or could there be many more and you always need to “connect” 2 of them?

    Are you creating those entites dynamically with the EntityManager?

    Can you maybe use the onXChanged signal of the first to change the x value of the 2nd and same for y?

    Cheers,
    Alex

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded