KKdenis's Recent Forum Activity

  • Sure,

    You have to inclube Browser object in your project, than you can make:

    On click SpriteX : Browser>Execute Javascript >"enterYourJSCodeOrFunction();"

    Thank you .Great tips.

  • Can I click a object call javascript function?I want to know have any way to include javascript function?Thank you for help.

  • I use the MoveTo plugin to move object A. And I pin B to A.But it have some different.

    I set A move Y 528px.But B jut move 511px. Could anyone help me?Thank you so much.

  • I want to create same type object with diff variable.For example,I create an Function ,every 1s will create a new object,this object have a variable 'Status',I hope the variable will have diff value,such as 1,2,3,4.....How could I make it?I just know the System object have a function that create object,but I don't know how to pick the new create object and set its' variable.Hope someone can help me.Thank you so much.

  • Thank you so much.Found the method.

  • I want to how to import the gif to sprite? I tried it but the gif just show static image.Can't show the animation.Please help me.Thank you so much

  • >

    > > yes, just like you did,

    > > first step, create a new sprite object load images from your file and named.

    > > secondly, create a global variable, on the start of layout, set this variable to random(sprite.animationFrameCount+1)

    > > last, set sprite frame to variable.

    > >

    > Thank you so much.One question,I want to know how to set sprite frame to variable?Do you mean use the sprite event "load image from url"?Or any other way?

    >

    ... i mean when you create a sprite object, import frames from your file and choose all your images, then set the event that "on the start of layout -- action: set sprite frame to int(random(sprite.framecount+1))"

    Thank u so much.It is work

  • > I use construct 2 to create my first Html5 game.And I have a request that random to load image.For example,I have 5 images in my image folder,but every time user enter the game ,it just need to load one.

    > So I create a sprite object first and I want when the page loading the sprite can random to set a image by global variable.How can I do?Or any methods?Thank you.

    >

    if you have the images inside a sprite, use the following

    on start of layout - sprite.setframe=round(random(self.animationframecount))

    see if that helps. keep in mind, using the animation frame count and a random of that total number, might be that some times, on start of layout you might get the same frame to show, since has no actual order.

    Thank u ,it is fine.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey guy,I have same question.But I can't find the condition 'Is On Mobile Device' in Browser.

  • I want to know how to detect mobile device?I found a post about this,it said that I can use the function 'Is On Mobile Device' in the object Browser.But I can't see this condition in Browser.Anyone can help me?Thank you so much.

  • I want to know how to set mouse hover to multiple object?I just know that set the one object and use system event Else to remove the effect.Thank you.

  • yes, just like you did,

    first step, create a new sprite object load images from your file and named.

    secondly, create a global variable, on the start of layout, set this variable to random(sprite.animationFrameCount+1)

    last, set sprite frame to variable.

    Thank you so much.One question,I want to know how to set sprite frame to variable?Do you mean use the sprite event "load image from url"?Or any other way?

KKdenis's avatar

KKdenis

Member since 8 Nov, 2016

None one is following KKdenis yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies