tulamide's Recent Forum Activity

  • Actually, ryackov is right. There's an inconsistency, there's partly auto-casting, maybe by design Ashley?

    I never stumbled upon it, because I always use variables of suitable types. With this small 1-event-project you can test it:

    <img src="https://dl.dropboxusercontent.com/u/11182740/C2/images/event.png" border="0" />

    Preview it and enter the letter a. It will say NaN as expected. Enter the letter 1 and it will return the number 1. With all issues that I mentioned earlier in my posts. (1.34 gets 1; 1,35 gets 1; 1.a gets 1 etc.)

    I didn't see this behavior before and would like to know if it's by design, and if so, why? (I think, it doesn't help much and introduces other issues)

  • Now that's good news! There's hope for Blossom <img src="smileys/smiley4.gif" border="0" align="middle" />

    ...and thank you for the compliment!

  • As far as I know it only gets merged separately if "force own texture" is activated or certain WebGL effects needs it. "force own texture" shouldn't be used too much as it slows the rendering process.

    EDIT: Ooops, I read wrong, interpreting "Layout" as "Layer". I'm very sorry! No the layout is directly drawn to screen (except for the "force own layer"-textures)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When I convert the input from a text box to a variable, even though it's a "number" variable, if I inputted text, or had no input, it would come out as NaN.That was my point, that I explained in detail. Your thoughts are wrong at this point. The input from a text box will always be text. Entering "1" is text, not a number. If you assign "1" to a number variable, C2 reacts absolutely correct with NaN (not a number). Why auto-type-casting isn't feasible is explained in my last post.

  • But that's something you don't need to worry about. For example, if only one object changes the whole scene would have to be drawn again anyway, so no advantage there. Drawing every frame also frees from computational overhead (like examining the render tree on every frame to see if there are changes)

    The layers, btw, are not really existing. They are a thought construct. Technically all object have some kind of ID which determines when to draw them. Placing them on a higher layer for example just gives them a higher ID (with some math involved).

  • Button pressed doesn't work for me. Please could you be more specific about once true condition. I added that too, but I guess I did something wrong.

    I am trying to mirror the animation. When I go right everything is fine, but when I go left I have the same problem with freezing on first frame. You should post a capx, as it might be your order of events or other logic.

  • Thank you Windwalker,

    We'll see what the future brings. Currently I'm more concerned if Blossom will be helped to explore the world <img src="smileys/smiley2.gif" border="0" align="middle" />

  • The idea of a competition around Scirra and its products was also what has driven me. And I wanted it to be less restrictive than others. The result was 'A blossom tale'.

    Of course I also tried to bring Scirra into the boat by contributing something like a badge etc.

    But Ashley had a convincing argument which was that it's in Scirra's best interest to try and treat all forum users equally. So unless Scirra itself will organize a competition there will be no benefits related to Scirra and it has to be held in 'open topic' to show that it's not from Scirra.

    But, as you can see by my blossom event, I'm very much a fan of the idea of a "Scirra Jam".

    I just thought, instead of talking about I actually start it as an experiment to see if it's pounced. Does it always have to be something official?

  • Without being able to test it, here's two possibilities, whose implementation would be up to you:

    1) By multiplying clamp(...) with timedelta (or a multiple of timedelta). The problem with it is, that while the angle to the mouse might change in big steps, the reaction from the turret would be slow, maybe too slow.

    2) By using lerp(). lerp basically sets some intermediate value between 2 known values, based on a t-value (the third parameter). lerp(1, 4, 0.25) would result in 1.75 (25% of the way from 1 to 4). If you use it like

    set angle to lerp(.angle, clamp(...) + Green_1.Angle, n * TimeDelta)

    it will also turn over time (with n being a number to test, the higher, the faster the turning)

    I have never worked with it, but there's a turret behavior. Is it possible that it solves some of your issues?

  • I couldn't agree more to the OP!

    But this:

    But as others have pointed out, the problem is twofold: newbies don't want to take the time to learn, and those who do help tend to solve the problem and not explain how it was solved.

    If you explain how something is solved to me, I might have follow-up questions that expand on the method you used and how it might apply to other situations. This helps me understand your solution and be able to apply it to more than one project.is also very true. And it is the reason why I try to explain a lot and give background information, which others might find "too much text to read". I did this already on the CC forums and do it here, because I refuse to accept that anyone does NOT want to learn.

    And I commend the following to any starters with C2:

    But boy is it fun to get something right, then make it better, more efficient, and streamlined. Building something that works is PURE JOY!This feeling doesn't go away, even after decades of developing. And trust me, even the most talented programmers, with experiences we can only dream of, will feel the same. Just ask Ashley, I'm sure he'll confirm.

    But that's a feeling you would never feel, if not learning, but just using premade solutions from others without understanding them.

  • When I convert the input from a text box to a variable, ...Assigning a value to a variable is not a conversion. Imagine it more like setting a new pointer to a spot in a table. Converting (known as type casting) will introduce a lot of issues, when trying to automate it.

    The input from a text box is -by definition- a string. How should C2 decide what it has to treat as a number?

    "+1" could be a number...or is it an approval? Or is it abbreviated for "me too"?

    "1a" What to do now? Taking "1" as a number and just omitting the rest of the text? Should C2 be allowed to just throw data out of the window automatically? Or isn't it a number but paragraph 1a?

    I think if it's a "number" variable, any inputs to it should automatically be converted to int().This would make it even more worse.

    "1.35" A number, right? But type casting to int would make it become 1 and again C2 would just throw data out of the window automatically.

    Even harder:

    "1,35" Not one but two numbers? Well, could be, but for example in germany this is the way to write the above number 1.35

    The only one who knows for sure, what type of value is needed, is the programmer. So it's good that it's up to you to do the correct conversions. <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Actually, C2 is one of the (if not THE) most efficient tools you'll find. And additionally it is also extremely convenient. For example. while working on your project, you have separate png for each frame. Correcting something on one of these frames is so easy this way, that I would call it efficient.

    The rest of your question is answered in detail here (read step 2)

    You see, C2 really tries to be convenient and efficient at the same time <img src="smileys/smiley1.gif" border="0" align="middle">

tulamide's avatar

tulamide

Member since 11 Sep, 2009

Twitter
tulamide has 3 followers

Trophy Case

  • 15-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

17/44
How to earn trophies