andykenobi's Forum Posts

  • i made a simple sprite in pixelart in 32x32 resolution.

    I got one problem... why this is happens?

    Editor:

    Browser:

    My game has a resolution: 256, 144. And the sampling: Point.

  • I think GetLastValue can work better with two formats:

    > GetLastValue: ["Fernando Santorini","20","Curitiba"]
    
    *easy use with tokenat.
    [/code:2u26j7gp]
    
    [code:2u26j7gp]
    *ExportToC2Array: {"c2array":true,"size":[3,1,1],"data":[[["Fernando Santorini"]],[["20"]],[["Curitiba"]]]}
    
    or
    *C2Array
    *GetC2ArrayFormat
    *I don't know lol
    [/code:2u26j7gp]
    

    i will make a v3.0... then i will put this functions... If u have another idea to put more, u can say and i will put.

  • I got it! I use this:

    Thank you!

  • > Hey, i don't know how to use mouse or touch to select menu... How do i do it?

    >

    For that purpose the action 'Select item (in menu)' might be handy.

    But how do i get the index number if the mouse is in the third item, for example... ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey, i don't know how to use mouse or touch to select menu... How do i do it?

  • Hello there, i love your plugin! Thank you! But i get an error when i use the function "GetPropState". I found where the error is. At line 1091 you don't instance the variable with a "var" property name.

    Current:

    tmpIndex = this.itemHandle.indexOf(name);

    Correct:

    var tmpIndex = this.itemHandle.indexOf(name);

  • Of course, timers are personal. That is the point. Boolean's are personal too.

    Thank you!

  • When i use a lerp, i usually do it with a timer combined with a boolean.

    This way i can restrain the lerp and i know when it ended. By instance.

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

    Cube is a lerp with 4 points. Nothing new.

    Cool, but it will work if one object have many instances?

  • Maybe something like: Add another Variable, start it at 0, call it "Timer", set the death condition to: health<0 and Timer<60 -> your code stuff, plus add 1 to "Timer".

    On Timer=60, destroy object.

    Good idea, i will try. Some one have another idea?

  • Most events trigger every tick without you having to change anything. I'm not sure what a 'code animation' is so I'll let someone else follow this up. It's probably easy to do I just don't understand what you want.

    Okay, let me explain it. I'm make a "lerp" animation with moviment. If i use a trigger, the "lerp" function will not execute... I need to evertick. Got it?

  • What triggers the death animation? If it is an instance variable for health reaching 0 then the event 'object health=0 - trigger death animation' will work for each instance.

    But, it is a trigger, it will execute one time... i need to execute evertick (60 frames per seconds) got it? Becouse the animation is in code, not the sprite animation.

  • Hello there! I have one question...

    I have 1 object (Sprite) with 3 instances. I want to make a function (or anything like) that have a code animation, not sprite animation. For example:

    Die animation:

    When an object dies, i want to make an animation with his death to that instace. How do i do it? Can i bind an object to an evertick function (or anything like)?

  • You can use both. I usually use "1" but I also use "2" for ordered events.

    Performance difference? "None" , both runs the same on export.

    Even if in theory 1 is faster, no one would volunteer to prove it considering it's insignificance.

    Don't focus your time on minor details, my mistake when I was still learning C2 .

    I use 1 normaly, but i always get this question... thanks!

  • There is no effect on speed if you do 1.

    You can simply do the performance check yourself by calling a function 1 thousand times using coding via 1 and 2.

    Cool, good to know, thanks!

  • > I use number 1 just in case in the future I have to put an "if" or "else" statement it will be easier. So go with number 1 so in case you want to make changes to code, its very easy.

    >

    Me too, but, do u think this can make the code be slow and heavy?