Thorne's Forum Posts

  • 11 posts
  • Hello everyone!

    I am getting to know Construct 2 quite well but am still having a bit of a problem. I basically have 6 objects and 6 targets. I have created a game where you have to match the correct object with the correct target. The objects all have drag and drop behaviours and I have coded everything so that it works EXCEPT ONE THING. At the moment, I am able to drag more than one object to one target. I want to make it so that only one object can be dragged to one target. How do I do this? Event sheet attached below. Would really appreciate your help, thank you!

  • Bump

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the reply! I did that because if the burger isn't overlapping them, I want the burger to return to its starting position. However if it is overlapping them, then I want the burger to snap to them. Any ideas?

  • I have followed a tutorial exactly but my drag and drop function is not working. The burger will not snap to the water containers. It just goes back to its starting positions. I have attached the .capx. PLEASE HELP!

    https://www.dropbox.com/s/0g441d8pj7y223l/Drag.capx?dl=0

  • Or try to add the persist behavior maybe?

    How do I add the persist variable to the instance vairable?

  • Make it global.

    Sorry how do I do that?

  • I basically added a health bar using this tutorial here: youtube.com/watch

    It uses an instance variable but it resets each time the player goes into a new layer. How do I make it continual?

  • Hi there, I am trying to create a sub-game within my game. I would like objects to fall from the sky when the player comes into contact with a bin which will then be used to catch those objects. These objects falling will only last 20 seconds or so then it will stop. I have attached the bullet behavior to the objects but don't really know where to go from here.

    Any suggestions?

  • Again... thank you! It is all working now. There is just one more thing.

    I am trying to get items to drop down upon the player colliding with the rubbish bin. At the moment I have player on collision with bin set bullet angle to 90 (I added a bulled behaviour to items) & rubbish bin on collision with item add points and then destroy.

    Any idea of where to go from here?

  • Thank you so much! You solved my first problem and I can now get it working. I still can't work out the bin thing.

    I don't think I explained it properly the first time, sorry. I am trying to attach the bin above the player's head on collision with that bin.

    In my events, all I have is player on collision with bin. I don't know where to go from here and the player only has an origin point as I don't know how to work image points.

    Also is it possible to get him to put it down after a certain time period?

    Thanks again.

  • Hi everyone! I am new to the Construct 2 community and just have a few questions. I have nearly finished my game but there are still a few more things that I can't seem to work out.

    1) How do I make the game go to a win screen if the players score is high enough and similarly to a lose screen if the player score is too low. The game ends when the player goes through a door but I don't know how to do it from here.

    2) One of the mini-games in my game is having the player pickup a rubbish bin and collect falling objects. I can only seem to pin the bin to the player's image point which is beneath her. How do I make it so that the bin is pinned above her?

  • 11 posts