How do I pick one instance at a time?

0 favourites
  • 2 posts
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • I mean most of my planks when on the ground are all groupped together....

    I want to pick them by walking on top of them

    I allready searched the forums but most of the solutions arent working...

    I mean I did add an overlapping plank and pick top (family) and doesnt work.... It always misses the correct ammount...

    I tried pick nearest furthest... but also doesnt work... It also misses the correct ammount...

    I tried using a combination of both of them...(I got better results) but still misses most....

    I also tried pick random instance and it also doesnt work... ( the total ammount looted is never equal to the amount of instances dropped...)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I don't understand what do you mean by "misses the correct amount". You should probably post your code or the project file.

    Usually if you need to pick one instance, for example, overlapping a player you can do something like this:

    Player Is Overlapping Block
    Block pick nearest to (Player.x, Player.y)
    
    or 
    
    Player Is Overlapping Block
    Block Pick Top Instance
    
    or 
    
    Player Is Overlapping Block
    System Pick Random Block Instance
    
    
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)