XManBG's Recent Forum Activity

  • Thanks vee41, with trigger once it works as expected. It shows the numbers from 2 to 12 once on the screen.

    <img src="http://www.colarion.com/construct2-test/strange_for_loop2.jpg" border="0" />

    Anyway I'm really wondering in what situation you could need the For-Loop to runs to eternity and not only once from 2 to 12?! It seams without Trigger once to be unusable?!

  • Yes, that was my theoretical expectation too!! But... in real C2... I just would like to write out the numbers from 2 to 12 on the screen. Sorry, maybe I don't understand the C2 programming logic. It would be realized that way with a common programming software. Please try this at home. No key press, no touch, no mouse.

    Strange For-Loop Behavior CAPX

    <img src="http://www.colarion.com/construct2-test/strange_for_loop.jpg" border="0">

    ... results in ... <font color="red">Please, note that it starts with 1 and goes to 12!! Furthermore, I'm expecting loopindex to return the numbers 2 to 12.</font>

    <img src="http://www.colarion.com/construct2-test/strange_for_loop_result.jpg" border="0">

    XManBG It does run exactly 11 times... every time you run that event. If you have it run on key press then it will loop 11 times when you press the key. If you have it running every tick then it will loop 11 times every tick.

  • Please, let me ask here a question about the For loop. Why does it run over and over again??

    I'm expecting, that an event "System For "" from 2 to 12" will run exactly 11 times and stop. Unfortunately that loop executes the actions continuously without stopping?!

  • Hi again, I've taken a look at the Sine Behavior code. If I'm not wrong, it should be enough to add following code to add a Reset action:

    edittime.js

    <font color=blue>AddAction(5, af_none, "Reset", "", "{my} <b>Reset</b>", "Reset the wave function.", "ResetWave");</font>

    runtime.js

    <font color=blue>Acts.prototype.ResetWave = function (){this.i = 0;};</font>

    I've tested it. It works as expected. On Reset, the Sine function starts at 0. Maybe you could test it too, and it could be added to the next C2 issue??

  • Nice example <img src="smileys/smiley1.gif" border="0" align="middle" /> I was on the way doing something similar.

    rojohound, is it possible to add to the Plug-In expressions, the actual/last Path (pen) coordinates X,Y?? Sometimes could be very useful just to save them, especially after the Arc drawing command.

  • +1

    Me too. I'm using the suggested behavior in my games. It's much more intuitive and user friendly.

  • Hello C2 development team,

    I'd like to point out a missing feature of the Sine Behavior:

    I'm missing the Sine Reset action. Once the Sine is activated it oscillates back and fort to the eternity. If set to inactive and back to active, it starts exactly from its last value, which is not always wanted.

    For example, if I would like to perform just a quarter period movement (progress 0 to 1), I'm using a condition to stop, i.e. inactivate the Sine behavior. Later, I'd like to repeat on the same object that quarter period movement from the beginning (progress 0 to 1 again), and not as noted from the last progress point (1 through 0 to -1). For now it appears to be impossible...?!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You are right, thanks. It is possible to animate morphing shapes by drawing and clearing in a row.

    I've noticed, that there is no functionality regarding Canvas Origin and additional Image Points. The appropriate button is gray. Speaking of shapes, there could be always the need to create procedural some "sticky" points on that shape, to Pin (behavior) other objects on them... Do you think it could be implemented?? Or maybe there is a way right now, but I still don't know how to use it?!

  • :) Thanks for that tip. Actually I should notice that the asking was about a polygon Plug-In, and not about a shape Plug-In.

    According to Yann, there is much difference in-between, which is strongly correct. I have to play a little with his Polygon Plug-In to see if I could make custom rounded corners of a polygon without Bezier curves...

  • Thank you for the good job doing that Plug-In!!

    Let me see, if I could ask you that: Is it possible with your Plug-In to draw a shape, which could be animated to morph to another shape?! E.g. initial rectangle to become a hexagon??

  • Yann, thanks for that Plug-In... I appreciate your effort. Of course coming out of the polygon term and going to free-hand shapes (heh, OK, bezier would be just enough) could be even more wonderful!

  • Hello people,

    I wanted to refresh the status of that asking... Actually I'd love to have such a shape designer Plug-In too... and even I was on the way to investigate on how to make it myself.

    Someone already working on that??

XManBG's avatar

XManBG

Member since 18 Jan, 2013

None one is following XManBG yet!

Connect with XManBG

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies