jatin1726's Recent Forum Activity

  • Hi Friends,

    Ashley How can i detect user has switched on Bluetooth of the device or not? right now it only can request for bluetooth but it can't tell user enable it. If user enables bluetooth I want an image to appear and if bluetooth is disable the image should stay hidden, is it possible using c3 bluetooth plugin?

    Tagged:

  • Hi Friends,

    I need urgent help where how to share variable '&score' value to the facebook post. I have gone through the construct forums but all solutions are old and not working. Also, facebook sharer.php doesnt allow inclusion of score variable.

    Please help me.

    Regards,

  • jatin1726 if I ever get a free moment I will make an example of how I do bilboarding sprites. but life is crazy for me at the moment.

    I will wish u get peace and prosperity soon for all your hardwork. and really looking forward to your this tutorial. God bless u.

  • Hi Friends,

    Need urgent help..can anyone tell me how to get camera and microphone request access one click of button. As of now, construct uses two separate calls for camera and microphone.

    Thanks in advance.

    Tagged:

  • > But I noticed it gives a random RBG value.

    It is not random! It's RGB value from the pixel in the center. It may not be accurate because of the camera noise etc. So if you need better detection, you have to calculate an average color for an area of pixels.

    You can take snapshots constantly, but you still have to wait for snapshot to finish. Saving a snapshot is not a fast operation, especially on large camera image. So you may not be able to detect moving objects with this method.

    And if you need to detect a red object anywhere on the screen, this will be nearly impossible to make with events. I suggest you look for some JS library.

    Thanks DOP

  • Here is a demo, one pixel is read from the center of the image:

    https://www.dropbox.com/s/oduicvl97l4v0le/Cameratest.c3p?dl=0

    Thanks DOP for sharing this link. It is helpful. But I noticed it gives a random RBG value. How can i find out that if a specific color is in screen. For example, if suddenly red color appears in my screen, It should be able to tell me red color is detected...can i get rgb value based on my requirement instead of screenshot taking and random value?

    Sorry for these many question ..but I see a ray of hope in your answer so I am asking ..thanks a lot in advance.

  • Have you seen the official template for this?

    https://editor.construct.net/#open=camera-average-color

    Yes, I saw this template but it is script based but I don't know coding so looking for normal solution in Construct 3 I could get the same results through events and actions.

  • jatin1726 Check out this Color Picker template:

    https://howtoconstructdemos.com/hsv-color-picker-tool-c3p/

    If this is not what you need, please give more information. Are you trying to read pixel color from a sprite?

    Actually I am opening camera and trying to detect specific color, like red color when in comes in camera scene. and then a alert can say it is red color. but for that it has to extract values of the pixel and then throw the message that red color it is .

  • The animations for the player object

    The first number in the animations name is the direction (360 / 8)and the second is the action ("S" meant slide I think and "i" means idle). The animations name represents the direction (of the 8 possible facings) and the frame represents how far into an animation it is playing"

    So I set the direction by only changing the number in the name with Set animation({direction to face}& right(player,animationname,1))

    the same is true the other way around. so when want to play an action (idle. stiffing, ect) I reverse it

    set animation(left(player.animationname,1) & {action}

    I have shelved the project for now tho. I was having a hard time getting people to test with and I doubted the game would be a success. So I decided to work on another project

    seems very nice thing but ppl like me less expert in this will need tutorial to learn this. Could you please share a tutorial link for this ? thanks in advance

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Mikal, i m not into coding, can u help me how to achieve color extraction without coding?

    DrawingCanvas (https://www.construct.net/en/make-games/manuals/construct-3/plugin-reference/drawing-canvas) allows you to extract specific color channel from a snapshot. You possibly can use the expressions of the plugin.

    thanks for sharing this. But for less experience ppl like me it is difficult to understand that theory. So we need to add a canvas elemement first and then take a snap shot? and then find snapshot cordinate? but how we will get all cordinate to get rgba? is it possible to help us with any sample capx..that will be very big help

  • There are javascript functions in the c3runtime to translate a color value to an R, G, B value.

    Ashley - is there a reason you would not want to share the code of the functions (so others could put the function code itself embedded as a new function in C3 events), I've tested using the function code myself locally using C3 event scripts and they seem to work well.

    Reminder:

    Mikal, i m not into coding, can u help me how to achieve color extraction without coding?

  • Ashley , could you please explain how the color is encoded in the ColorValue? I.e. is there a way to extract r/g/b/alpha channels from it? I couldn't find this info anywhere.

    thanks dop2000 for bringing this. Me too looking for the solution of same. Ashley please help us in this.

jatin1726's avatar

jatin1726

Member since 27 Oct, 2014

Twitter
jatin1726 has 4 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • x2
    Popular Game One of your games has over 1,000 players
  • x25
    Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies