Forums

OverviewV-Play 2 Support (Qt 5)How to access signals from dynamically created entities? › Reply To: How to access signals from dynamically created entities?

OverviewV-Play 2 Support (Qt 5)How to access signals from dynamically created entities? › Reply To: How to access signals from dynamically created entities?
#8644

Martin

How does this work if the signal to be handled

  • has to be handled differently in each level, and
  • the handling is to be done be logic within the level?

The real example I face is that a Key (in this instance) knows when it has hit a Platform (both dynamically created instances).   This is detected in the Key’s collider’s onBeginContact.

But the Key has no idea what is supposed to happen when it hits the Platform.   Only the level knows this.    One example of what might have to happen is a new Key drops in from the ceiling (this is in fact the case in the current level I am working on).

 

  • This reply was modified 3 years, 7 months ago by  GreenAsJade.
  • This reply was modified 3 years, 7 months ago by  GreenAsJade.

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