How do I set touch for Hidden Object Games?

  • HELP!!!! I am a graphic designer, I don't know how to code. I brought this because it says they have "Visual Scripting". I've found zero Youtube tutorials on anything similar to what I want to do, it's most platform or shooting games.

    This is what I am needing. I am making a hidden object game, so when an object is touched, I want it to disappear and 10 points added to the score. When all 10 objects are found and score equals 100, I want it to trigger the next scene. How do I make that happen? The main issue is I have a start button that I want to open the first scene and I don't even know how to do that either. I know some sort of variable has to be created for a score but I am not sure where to start with that. I suppose basically, How would I get started with this hidden object game because I am totally stuck?

    This will be an android game btw.

    Thanks to anyone who can help me.

  • This is what I am needing. I am making a hidden object game, so when an object is touched, I want it to disappear and 10 points added to the score. When all 10 objects are found and score equals 100, I want it to trigger the next scene. How do I make that happen?

    1. [layout] Have 10 sprites set at 0% opacity (invisible).
    2. [event] 'On Clicked Object (invisible sprite)' > Destroy sprite & add 10 to 'points' variable
    3. [event] 'points' variable = 100 > Go to 'next' layout

    The main issue is I have a start button that I want to open the first scene and I don't even know how to do that either. I know some sort of variable has to be created for a score but I am not sure where to start with that. I suppose basically, How would I get started with this hidden object game because I am totally stuck?

    1. [layout] one layout for the start button
    2. [event] on 'start button' clicked > go to '10 sprites' layout
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks SofaKing!! So, just to clarify, I would need to make a variable which is "score" and set it at zero.

    Then every time an object is touched, the score variable will update?

    If yes, I will try it out right now. Thanks so much!!!!

  • O.k., this sounds pretty lame...where is the "on clicked" functions?

  • If this is going to be an Android mobile game you would need to add the Touch plugin:

    1. Click anywhere on any layout to add an object, scroll down to the Input section and select "Touch".

    2. In the event sheet associated with the layout containing the hidden objects, click "Add Event" and add a Touch condition.

    3. Choose "On Tap Object" and select the hidden object to set the touch condition.

    When testing this on a computer make sure you have "Use mouse input" ticked in the Touch object's properties - it will then treat the mouse input as a touch input.

  • Thank You all so much!!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)