Darklinki's Forum Posts

  • If you descripe that one a bit more I will help you ;)

  • set planet solid

    make player to platform

    Event: Set Platform angle of gravity to ange(Player.X, Player.Y, Planet.X, Planet.Y) degrees

    Set angle of Player to Player.GravityAngle - 90 degrees

    Nearly the same thing you can do for this block or whatever this black things are :D

  • You could add the bullet behavior and shoot them out of the layout.

    Just set if you drag them the angle right and set speed.

    After that make a condition:

    if ball = outside of Layout

    destroy ball

  • Layout angle and angle of gravitation are the 2 main functions you search ;) search them in the manual, there are also nice tutorials from the creator of super ubie land

  • 1. Remove the for each, without it will never hit 7 matches cause only 1 index is picked

    2. should change to pick by distance() >= 107

    107 = 75 the correct distance + the half distance, so you have some playroom

    If this is not working check the parameter of the function and if this also not works, I never made it like this if you want you can try my version combined with his function

    Edit: Damn someone was faster <img src="smileys/smiley7.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • zatyka the idea with the function is better than the mine with the instance variables but your action to pick the right objects is proud to failure. It�s saver to pick the nearest objects than the one in a given distance(distance could get changed)

  • Your no noob for sure you already do advanced stuff, but the problem is we can?t help you without any informations.

    You don?t have to send us your whole game but it would be nice if you give us screenshots from the event block which destroys or damage all objects so that we have anything to understand what you want from us. You can also make a black bar above your images but please give us anything :D

  • Hello Rex is it possible to make an for each with this data ?

    {

    "friends":{

                  0:{

                      name:'fuu'

                   }

                  ....

                }

    "something else":{

                       }

    }

    If I do, for each item in "" I don`t get any data(It doesn?t even starts an loop) also for each item in "friends" don`t work

  • I also like this kind of idea but dont forget that you have to wait every time you preview 1-2 seconds. Every X(user defined) preview save would be better I think

  • This isn?t very hard but some code:

    +on click(or however you pick the middle)

    variable clickedX

    variable clickedY

    variable clickedFrame

    • set clickedX = circle.X
    • set clickedY = circle.Y
    • set clickedFrame = circle.AnimationFrame
    • for each order by distance(clickedX, clickedY, circle.X, circle.Y)

    -- if circle.AnimationFrame != clickedFrame

    --- stop loop

    -- if loopindex("") = 6

    --- again for each ordered by...

    ---- circle destroy

    This works for sure but with some luck some one else got a better way

  • This what I said, you need to pick the right instances in your events.

  • Just make a small .capx with every x seconds and a sample of your function.

  • You should also know things like that don�t come from construct 2 they come from the exporters. If Coocon.js supports multi-cores also C2 supports them ;)

  • Make a sample .capx can't tell you like that what's wrong :D

  • You don?t need an OR Plugin, it?s already in c2. Right click on condition click on "makke 'OR' Block", after that you can add as many conditions as you want ;)