IGDev's Recent Forum Activity

  • How can i set position of SpriteA to position SpriteB but on his image point 1 ?

  • Here's an example of what I had in mind:

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

    You solve my 80% what i need

    now i nedd something little more advanced

    https://www.dropbox.com/s/bp20nxm5ilmxx ... e.png?dl=0

    When rod is straight we can imgine that is far away but when rod is close should automatically become longer.

    Its possible to make automatically calculation?

    When end of rod is closer of bottom layout > increase lenght?

    and when is furthest lenght should slightly decrease?

  • Simple approach:

    Use an image that is wider on the bottom and thinner on the end.

    Have the origin at the bottom of the rod (thick part) and place the rod's origin in the bottom center of the screen.

    Then simply set the angle towards where you clicked.

    you mean change angle on X plane

    rod should move on x, y, z

    end of rod should be bigger when is near and smaller when is far from human

  • hello, i found 2D game with nice looking rod movement

    how can i make this same?

  • You should start making tilemaps

    your graphics is good

  • IGDev Also in your example it looks like you have a bug where clicking on the same sprite1 will generate additional lines - or is this intended? If you explain the required behaviour I can have a go at patching it up.

    yes line must be created only on sprite1 surface and end on second sprite1

    line should 'connect'

  • Here's an example using a function. In the example I call the function at the start and on any mouse click (the mouse click also randomises the widths of the sprites to simulate the sprite widths changing during runtime) but you can call it whenever you need to in your project:

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

    Hi, i download your example and im wondering how add posibility to count spawned and stretched new sprites.

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

    can you fix the problem?

    i dont know why stretched lines after drop getting smaller

  • Haha, you quoted me, now i cant erase my stupid comments. Here goes :

    Legal maximum for Acurrent = Cmax

    Possible illegal maximum >> Bincome + Acurrent = bigger then Cmax

    Everything bigger then Cmax goes back to Bincome

    So .....

    Local variable temp

    temp = min(Bincome + Acurrent,Cmax)

    Bincome = (Bincome + Acurrent) - temp

    Acurrent = temp

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

    i see now what is missing

    when i calculate first time

    From B 200 goes to A abd 200 stay

    its possible to make this without Textboxes?

    For example when my A is equal to C

    A should be changed to 0

    and i we should have posibility to click again and add rest from B to A variable?

  • No, that is wrong, i suppose Acurrent cant be less than zero too.

    im so confused about this

    can you show this in capx?

  • I have 3 global variables:

    Acurrent

    Bincome

    Cmax

    Global variable "Acurrent" have 300

    Global variable "Cmax" have 500

    Global variable "Bincome" will be have random number lets for example set to 400

    now when i click button

    system should fill "Cmax" to his maximum variable (500)

    Add "Bincome" (400) to "Acurrent"(300)

    BUT when "Acurrent" is 300 we can add only 200 from "Bincome"

    so finally after clicking button

    we should have calculation

    A-500

    C-500

    B-200

    SECOND EXAMPLE

    when Cmax have only 50

    and Acurrent have 0

    We take from Bincome only 50

  • The trick is the delete doesn't complete until you leave the top-level event, so you actually need to flag your deleted objects to eliminate them from the loop.

    http://www.blackhornettechnologies.com/Construct2Stuff/DeleteOnStartup.capx

    i think thats what i need ;D

    Many thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • bump

IGDev's avatar

IGDev

Member since 1 Aug, 2015

None one is following IGDev yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies