Solano's Forum Posts

  • 9 posts
  • Hi folks,

    I want to know if it impacts my games performance, say on mobile devices

    (which i cant test atm because I am on the Free Edition)

    if I use Global Variables instead of an Array to:

      Store Angle Data of up to 20 Objects all the time after manipulation Measure constantly distances between my 20 Objects and the Mouse Cursor position Manipulate Angle Data of any of the 20 objects next after next

    All my data manipulation comes mainly from the mouse cursor position.

    I am new - so if this question has an absolute "no why would it have an impact - makes no sense?!" answer then please excuse.

    Just need to know HOW I build my project further in the right direction from the beginning as you surely understand.

    Oh and - why Mouse on Mobile Device? I want to transform my mouse interactions in touch interactions later...

    Cheers,

    Solano

  • Dear R0J0hound,

    this is absolute amazing!

    This is absolutely what I was trying to get but couldnt achieve!

    I am so thankful!

    I tested it and it looks awesome, cant figure out your few lines of math which do the magic but i get into it.

    Thanks again!

  • Thanks for the fast and nice reply even with example!

    I had the same idea so far with a not so well made polygon shape to do the job somehow. But isnt there any other way which is more clean and precise?

  • Hey there,

    I want to make a ring and detect if an object hit the outside of it.

    The ring also has a small opening/gap where a bullet shall fly through and move on the inside of the ring.

    Is the only way to achieve a correct hit detection the polygon tool with many many points or do you guys have some suggestions for me?

    TLDR:

    How can I achieve to hit detect only the ring shape itself?

    Best regards!

  • i searching for that too!

    hope someone knows how to solve this...

    its the best splitscreen method in my opinion!

  • simply made my day, thank you zatyka!

  • i made the transition effect finally!

    with help of many different topics here in this forum and great community help!

    this one scales with easing after an overlapping or collision or which trigger you want of course

    makes a zoom transition!

    lerp(LayerScale(1),1.5,dt *5)

    in detail:

    lerp is an LinearintERPolation

    (LayerScale) is normally 1

    1,5 is the target // Layerscale 1,5 so to speak

    and dt*5 is the factor which "motors" the movement! //dt is Delta-time in seconds

    i am sitting here for hours and now its working!

    thanks to everybody!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thanks for your reply

    i cant open your file :(

    is there a way to downgrade the file?

    i dont want the beta software to install, i prefer the stable one

    so there i can be sure its me making mistakes, not the tool if something doesnt work you know?

    can u explain what you mean with "dt" ?

  • hi,

    i am new to variables and especially easing with math formulas.

    i cant figure out how to get an easing for jumping with a figure for example...

    i found this one on a page i am not permitted to paste here (if u want the link just pm me)

    // quadratic easing in - accelerating from zero velocity

    Math.easeInQuad = function (t, b, c, d) {

         t /= d;

         return c*t*t + b;

    };

    </font>

    it says:

    t = current time

    b = start value

    c = change in value

    d = duration

    i cant figure out how to transfer this into my event sheet in C2.

    i made a global variable for each letter but dont know what to put in really :(

    does somebody knows how to integrate such easing in jumping beahvior?

    and how to I say Construct2 to take "2 Seconds" in realtime to do an event?

    for example: do rotate sprite XYZ by 1� for 2 seconds... how would i build this in C2?

    I am very thankful for any help,

    greets!

  • 9 posts