LittleStain's Forum Posts

  • and adding the family.uid to the textobject as an instance variable so you can get the correct text for each family member (workaround for not being able to use the container)

    • Post link icon

    should be as easy as checking

    abs(player.x-door.x) <80

    You could use a for each door if you have difficulties with multiple instances

    I'm not sure what kind of events you are using to make the doors move, but making it a triggered event or trigger once while true would be best..

  • You are not picking specific family members..

    try using pick by comparison, or ofcourse for each..

  • Would using an array to store the tags work?

    set the first row to sfx and the second to the tag

    if array.at(currentx,0) = sfx

    • set audio with tag (array.currentx,1)
  • I think you mean the typewriter effect, there's an example for that in the FAQ..

    Using the search you will find more examples..

  • I don't have that problem, the graphics are also visible within the editor..

    Are your video card drivers up to date?

    Does it help if you turn of webgl in the editor?

  • There is no need to insert new object-instances of the function-object if the function-object is already there..

    In your event sheet you should be able to add on function events and call function actions

    There is only one object but within the event sheet you can adjust the name of the function being called..

    If I'm misunderstanding, could you please elaborate?

  • I'm not sure what is wrong, for I see the blue and red image when playing the capx..

  • Should be possible by only setting the object while touch is touching, don't think multi-player should make any difference..

    But to be honest I've had these moments myself and using the above way to make sure, always helped..

  • I guess that is, because when there is no touch touch.x and touch.y are both 0..

    adding instance variable that are set to touch.x and touch.y on touch end and/or only setting setting the x and y while touching should solve it..

  • Copied from another topic:

    fly-example

    And this is the code for that one:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • using a tiled background to create the rope from hook to bucket you could set its position to hook.x,hook,y , its width to distance (hook.x,hook.y,bucket.x,bucket.y) and its angle to angle(hook.x,hook.y,bucket.x,bucket.y)

    if you'd rather set it to an imagepoint than the origin of the bucket, create an imagepoint and us bucket.imagepointX(1),bucket.imagepointY(1)

  • Your layout is restarting every tick..

    remove:

    system lives > 0 - restart layout

  • Did you try the defrost button?

    But seriously, without seeing your capx, it would be impossible to guess what's wrong..

  • As always there are multiple ways to do this, some involve a lot of math and some are pretty easy..

    Easiest way I would know of is giving the object rotate behaviour, putting the origin outside it's image and pinning it to the player..

    when wanting to move it to attack, just spawn a new object with the same animation but different behaviour and destroy the rotating one..

    While this is probably the easiest way, it might not be the best performance-wise..