Pecek's Forum Posts

  • dl.dropbox.com/u/2721498/2stroke/Construct/cap/terrain%26angle.cap

    You have to extend it, but this is the main idea.

  • As I saw before, the motion blur isn't too compatible with most of the other parts of construct(it's crashes a lot, at least on my computer.)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can do this easily with the rts movement behavior, just set the deceleration and the rotation speed high(I used 30000 for deceleration and 9000 for the rotation speed, but probably lower values should be fine.)

    If you use any object with "solid" attribute on it you should turn off the pathfinding, and be sure the rotating object option is on.

    The events should look like this:

    + MouseKeyboard: On Right mouse button Clicked

    -> Sprite: Move to mouse

    -> Sprite: Add waypoint at Sprite

    Of course this is a bruteforce solution, but it works.

  • Post the cap please, without it we can only guessing what your problem is.

  • The audiere is better if you want to play more sounds at the same time(without have to deal with channels), if so, you should use that.

  • I did the same, and it works for me.

    dl.dropbox.com/u/2721498/2stroke/Construct/cap/anim.cap

  • Use private variables("player_id" for example) to simply select one of the instances, and make your events like this:

    -while "D" is pressed

    -player with player_id == 1

    -> set player position to player.x + 1

  • I have changed the 12.event to this:

    + System: Always (every tick)

    -> scroller: Add 300 * TimeDelta to 'scrollSpeed'

    -> scroller: Set X to lerp(scrollBox.Value('scrollStart') , scrollBox.Value('scrollEnd') , sin((scroller.Value('scrollSpeed')+1)/2 ) )

    Looks like its only working well with the sprite, the button still has the ~0,5s delay.

    Edit:

    Btw when you use the "else" statement the other conditions are doesnt matters, so lets say, if you want to check a variable, you should do it like this:

    if a > 0:

    • do this

    if a < 0:

    • do that

    else:

    • do something else

    So if a isnt higher than 0, and a isnt lower than 0, then it'll do what you "said" in your else loop, but only in that case.

  • If I understand your problem, this will help.

    When you exporting your exe, deselect the "enable python" checkbox, select it again and then select the libs what you are using.

  • Just mark the first one(I used the "parent" variable for this), and make a global variable wich stores the original ball's angle.

    + System: Start of layout

    -> System: Create object Ball on layer 1 at (50, 400)

    + System: For each Ball

    + Ball: Value 'parent' Equal to 1

    -> System: Set global variable 'angle' to Ball.Angle

    + System: For each Ball

    + Ball: Value 'parent' Not equal to 1

    -> Ball: Set angle of motion to global('angle')

  • Wow, thanks for the help, it works like a charm.:)

  • dl.dropbox.com/u/2721498/2stroke/Construct/cap/platformanim.cap

    Is that solved the problem? (If so, look at the animation sheet)

    I don't know much about the collission masks, sorry.

  • Post the cap please, it's should be easier then.

  • The problem is in the Sprite2's direction, try this:

    dl.dropbox.com/u/2721498/2stroke/Construct/cap/platform.cap

  • Hi there,

    I would like to use the hingetoobject function, but I don't know how to access one of the istances. I searched the forum for hours, but I got nothing, so any help would be great..

    I can access the first object(wich I want to hinge to the other object), but I don't know where to go from there.

    Here is the snippet:

    for i in range(0, 5):

         System.CreateByName("chain", 1, Sprite.X, Sprite.Y + 100 + i*chain.Height)

         SOL.chain.SetValue('ID', i)

         SOL.chainPhysics.HingeToObject("chain",0,0)

    How can I reffer to a specified instance of the chain object?