Forums

OverviewV-Play 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
    V-Play 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support