jatin1726's Forum Posts

  • You can do this using blend modes.

    Put two sprites (main sprite and the black "hole" sprite) on the same layer, set "Force own textures" in this layer's properties. And apply Destination Out blend mode to the "hole" sprite.

    I tried your solutoin but it didnt work.

  • You can use Touch.AngleAt(0) and Touch.SpeedAt(0) to recognize gestures.

    Here is a demo I made for another post:

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

    I loved it, thanks a lot for sharing it.

  • would also be interested in the gesture and lemmings examples!

    all files seem down atm, any chance of bringing them back?

    I m following construct 2 from long time so I might have some capx which are old and I have gestures recogniztion capx too. I will upload on some site for free download.

  • Any solution? plz guys help

  • Hi Friends,

    I need help in creating a player who attacks by using hunter. He can throw his hunter towards enemy and hunter edge sticks to enemy and pulls him near to hit. You would have seen it in tekken or other game. Main challenge is :

    1. How to create a hunter who has flow like a rope and control it?

    2. How to pull hunter to smash enemy on floor on left and right (like hulk did to loki in avengers and to thor in thor ragnarok)

    Any suggestion?

    Regards,

  • can you guys try the same with web gl off option. It worked for me long before when I was working for some project.

  • jatin1726

    rbailey83

    Here you go:

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

    Thanks a lot. It works as expected.

  • Anyone plz? help me

  • Hi Friends,

    Can anyone tell me correct resolution to fill the mobile screen in portrait mode? right now black portions are available on top and bottom and game size i am using is 540x960 letterbox. I am using cocoon to create android apk. I have read all the tutorials in construct 2 but nothing filling the screen in portrait mode.

    Please help.

    Regards,

    Jatin

  • I Agree with you shubhamrathi. I have paid for the licence but all the features are missing fg login , google login scoreboard. We have to depend lot on additional plugins to get the work done. Please Ashley look into this.

  • me too looking for the solution but no success till now.

  • You can't do this with standard C2 events, but it's possible with JS code.

    Here is a somewhat similar plugin that detects faces in images.

    viewtopic.php?t=72970&start=0

    https://github.com/JohnnySheffield/C2_P ... facedetect

    If you are familiar with JS, you can probably modify this plugin for color detection using tracking.js library from the link you posted.

    I already got facedetect plugin but due to no knowledge of JS I can't modify the code to detect colors in camera. If you can help me out in this that would be really great.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Hi, you don't have to detect a color to do what you want. You can simply detect a specific object which happens to be red. There are several ways to accomplish this:

    >

    > - If the red object is an independent object it can be simply detected by its name

    > - If the red object is a clone of an existing object you can give it an instance variable Red = 1, Red = 0 for other objects

    >

    > Next for the detection area, if it is the entire area there is a "is visible" feature that you can use and/or right click on that after adding and click Reverse which then means "is not visible".

    >

    > Another way is to detect using the distance from the camera object. So if it is within say 300 pixels then you consider it detected. A simple distance formula should easily work for this.

    >

    > Best of luck,

    > COSMOS

    >

    I believe he's talking about an actual, physical, object he wants to be detected through the actual image capture of an actual camera. Not the game camera, not a sprite, virtual, object. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Hi Bruno. thanks for replying and Yes you r correct. I am trying to detect color in real time video. Here is sample of what I want to do

    https://trackingjs.com/examples/color_camera.html

    Steps

    1 open camera

    2 select colors from check box that u want to get detected and then u can see it shows boxes of detected color.

    Can we do like that in construct 2?

  • Hi Friends,

    I need help in creating a game using construct 2 camera. When user opens camera and any red color object is seen through camera. It will show a sticker. So whole idea is camera should detect color and do something. How to do this?

    I am trying to detect color in real time video. Here is sample of what I want to do

    https://trackingjs.com/examples/color_camera.html

    Steps

    1 open camera

    2 select colors from check box that u want to get detected and then u can see it shows boxes of detected color.

    Can we do like that in construct 2?

    Regards,

    Jatin

  • Glad to help.

    How to stop the scrolling when last box is displayed on the screen and user can only scroll back not forward? can u show us how to do this?