samur's Forum Posts

  • Hey,

    We made such a game for 48 hours game jam: http://www.newgrounds.com/portal/view/642583. One guy on NewGrounds asked me to share my laser implementation and so I did, but I thought that maybe more people will have fun using it <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> I commented it the best I could. Hope that for someone it will be useful <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> Here is the link to .capx: http://samur.pl/C2Examples/lazer.capx

    Just one thing! You can use the code as you want. Just don't use graphics in your commercial projects. Thanks!

    And if someone will have some suggestions how you could implement it better or something... I'll be glad to learn! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Could you post your .capx? Maybe I could find a solution :)

  • Thanks! It works great. I didn't want the hook wait until it gets it max length, so I changed it a little. I have one question, though:

    Each tick you set value: distanceFromHook to its real distance, but when you move ufo so it will follow the hook you have to subtract 200. Why distanceFromHook resets to almost zero when the hook sticks to worm and ufo instantly follows it?

    Spades Thanks! I know I have the possibility like this, but cow_trix methos is interesting because hook just sticks to the object in the point where it collided with it. But probably in the end sticking to one imagepoint will be better.

  • Hello! I'm struggling to make something like this:

    We have three objects interacting with each other: ufo, hook and worm.

    On mouse click UFO sends Hook in space to some max distance. If hook overlaps with worm then hook should attach itself to worm which is moving and dragging hook. Hook should set its angle to the angle of worm. And UFO should be dragged with the hook with its angle.

    I tried to do it using this new behaviour: Pin. But when I pin ufo to hook and hook to worm and I rotate hook toward angle of worm then only UFO rotates and I can't rotate hook. You can download this project here: 7zip.com You send hook with the left mouse button and you have to send it so it hits the worm. In this version I added as few mechanics as I needed for this, because I'm really struggling to make it work...

    Maybe I should use physics instead?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • OK - after reinstal I have this example. I'll study it, thanks! :)

  • Thank you! Got it covered :) Just like newt proposed I set a hot spot to one side of the image and it's working :)

    Kyatric Unfortunetly I don't have Physics - distance joint.capx example file. Probably because I have a free version?

  • I want to draw a line, which will start from one point (ImagePoint) to the next point. I did it with setting line width with each tick, but it draws from the point in two directions and I want it only to go up. So basically I want to draw a line which will go just in one direction (upwards). How to do it?

  • Hi! I'm working as a game designer for life ;) And I'm looking for some fast ways to develop game prototypes and Construct 2 seems exactly like this. Hope I'll do amazing things in it! :)