Kyatric's Forum Posts

  • Here is the code for it.

    Objects in the project :

    Text to display some moving informations.

    Sprite - Moving animation to have something changing in the different snapshots

    Sprite2 - A "frame" from a different color, placed underneath "Snapshot"

    Snapshot - The sprite in which you display the snapshot

    Button - The button used to trigger taking a snapshot.

    You could set Steam to download beta releases (not really advised as in case of breaking release you are stuck until a new release comes up, generally blocking one to two days of development).

    You could very well download the free edition for r229 from the website and open the capx in it as well.

  • Kyatric Sorry about that I jumped the gun because his attitude of "hello people answer me now".

    Well, I know what it's like, but in those cases, prefer to use the report tool and just go to another topic without even answering the current one.

    Mods will review the reports and act if/when needed. You'll enjoy visiting the forums far more if you take a more detached approach.

    See something that should be reported, do report it and move on, mods will deal with it, you don't have to and can enjoy going to other parts/topics.

    Always keep in mind this is a written forum with people from different countries/languages/cultures.

    English is used, but possibly not always mastered, and it's OK.

    tomi71: I agree, you hadn't an attitude and asked further questions after an appropriate time. The question appeared perhaps a bit clumsy in regards to your actual intent. It was a bit tricky because of the "Make my game for me" users that often tends to come to the forums. Even though in the end that's not what you are and not what you asked. There was just a language barrier issue, yet everything is fine in the end, everyone is on the same page.

    There wasn't a capx, but I did one to answer your question, following the tutorial. It was quickly done, so no big deal.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • With the fade behavior, make sure that you have set the property "Destroy after fadeout" to no, otherwise you can't make a "cycle" because simply your object/instance does not exists anymore.

    You will also need to have two fades behaviors on the same object for it to work, one fade in, another fadeout. Make sure for both that they don't attempt to destroy the object when they are done. Make sure to change their names to something obvious as well (you can modify the name in the behavior dialog).

    I'd use something like FadeIn and FadeOut.

    On FadeOut fade out complete - FadeIn - Fade restart

    On FadeIn fade in complete - FadeOut - Fade restart

    That should help getting your cycle.

    But perhaps you should rather look into using the Sine behavior, using the property "opacity" rather to obtain that pulse effect. It sounds simpler and will achieve the same look in the end.

  • You need to create some sort of data structure, instead of trying to "store" sprites.

    What matters is the logical object the sprite represents.

    You can then, instead of using several sprites, use only a single Sprite with multiple animation frames (or animations).

    You should then have a multiple dimensions array which X will represent the "index" for each object, and the values on Y will represents parameters/properties of the object, for example, the animation name to use in the Sprite object type to display the logical object.

    One of the Y value should be either 0 or 1, 0 means the object hasn't been found, 1 it has.

    When initialising your array, you should set the maximum Y (Height) value possible right away.

    Even if you are not filling it right now (the default value of "empty" cells is 0 so it still contains a value).

    Resizing the array "on the fly" in Y risks of losing existing values and can actually be a logical nightmare to implement.

    If that did not help, consider posting your capx and explaining clearly what you are attempting to do, what you have done so far, and what you experience and how it differs from what you would expect.

  • Last time I was indicated such an issue, the person managed to "fix it" by updating their windows version.

    Nevertheless, the dll name is indeed very strange and could lead to believe there is some malware at work, or some data corruption somewhere (a deficient cluster on the hard drive, this happens). In the case of a malfunctioning cluster a clean reinstall of windows might be to be seen.

    Otherwise, make an attempt at creating another Windows account/session, and see if executing Construct / installing Construct on that session changes things or if you encounter the same kind of issue.

  • No, PixelPower is not a moderator. Reminder PP, backseat moderating is not encouraged on those forums, please behave.

    Avoid not-constructive answers where you are not actually providing support.

    Nevertheless, he's right on one point, the people providing answers in the forums do it on their free time, on their own will, on what they want to answer.

    Moreover, when sometime a question does not get an answer, it is often because either the solution can be easily found out by using the search feature, looking into the manual, how do I FAQ, C2 Academy playlist, and other existing informations resources, or because the question is not detailed enough.

    1. Those manual articles are critical for answers on performances and how to deal with it : performance tips, memory usage. For starters, there are the rules to follow.

    Then, as indicated in the best practices you are to test out your project often on your target device, and as such, you can know quickly when you are hitting a peak/limitation in performances depending on the specific device.

    When this happens, or you have specific performances question out of the frame of the manual articles, answer your own performance questions with measurements as there is no "fit-all-sizes" answers on that front.

    Overall though, layout size is not an issue. The number of instances and the size of the textures within those instances on the other hand can lead to issues.

    2. It depends on your usage. Each frame can have its own collision polygon, but if you are willing to have some consistent collisions through an animation, it might be useful to have the polygon consistent over it as well.

    The article on image and animation editor states the fact that right-clicking in the image editor window will display a context menu to help having the same polygon over the animation.

    3. I tend to regroup all the actions in the same event as well.

    Also be aware that instead of a "Every tick" condition, you can choose to have the event (or sub-event) as blank, and it will act the same.

    Sub-events can also act as "other condition" in that case.

    Have a top level blank or "Every tick" event, and as sub-event, check the value of some variable, or do any other kind of check, that will make logical sense and allow you to keep a good organisation of your events. It will have the advantage to make sure the check happens at this point of the code's execution (especially if they are not triggered conditions)

    4 has already been answered.

    Here is a capx that does nothing more than what is explained in said tutorial. It is even hard to see what it does since there are close to no pictures to load in that example.

    You can, when in need, ask for precisions for specific cases. The more precise the question, the most detailed the answers will be.

    But on the other hand, don't expect other to make your project for you either, a lot of newcomers/requests sound like that and are often ignored because of it.

    5. This also is greatly dependent on your project. In the absolute, JS error should not happen. If you encounter one, it could be because you use a third-part addon that actually cause the issue, or as BlackHornet mentioned, you made some infinite loop and find yourself into some recursion.

    When such an error happens, a dialog appears and do display a message. That actual message explains what the error likely is, and where you could/should fix it in your events.

    Checking the browser for errors might also give further clues as to what the issue exactly is, and at last, posting your capx and how to reproduce the issue, allowing to get help from the community is your best bet as well.

    On our forums, it is OK to bump a topic after 24 hours, but avoid just bumps for the sake of bumps, your best shot is always to show your researches and attempts to fix an issue in the meantime.

    There is no obligation of answers by the community, and it all depends on the availability of people passing by at the moment you post.

  • Your code in the OP is not valid since you only modify the TouchIndex value in the "On touched" event (which actually triggers once the touch is over and the user removed his finger).

    In your case, you should rather set TouchIndex value in a "On any touch start" event.

    Then in your event 2, in addition to "is touching", add the condition "Has Nth touch" where Nth value is TouchIndex as Newt was saying from the get go.

  • Armouredank: Yes, it is likely not working because your sounds are MP3.

    As you can see in the manual article about the audio object, sound format is supposed to be ogg and m4a.

    Depending on your OS the conversion can be automatic, but MP3 is such a legal mess (read 1, 2, read about the HTML5 audio formats : 1, 2) that it was not recommended by Scirra.

    Moreover, prefer importing music into the "Music" folder, not the "Sound" folder unless you know what you are doing (which, no offence, doesn't look like the case at the moment). Again, please refer to the manual (this article in this case).

    Inverting is done by right-clicking a condition and selecting "Invert" in the appearing contextual menu.

  • I fail to see a logical reason why this would happen with your events.

    So likely it could be a bug with the sine behavior "unmirroring" sprites by default when modifying their width.

    Consider posting a bug report following the bug report guidelines.

    You can add this repro capx to your report as well if you want.

  • In the case of a dart target, I would use concentric circles.

    So a circle image and collision polygon, and you size them accordingly to each section (1 point, 2 points, 4 points and so on).

    In the code, to know what "section" your dart is currently touching, you end up with something like :

    Dart is overlapping Section_n - 1

    Dart is overlapping Section_n

    Dart is not overlapping Section_n + 1

    As the conditions to determine what "Section_n" is.

    I would use instances for each section of the target, the animation frame allowing me to determine Section_n.

    I hope it makes sense.

    People should stop multiplying threads and actually read existing threads like this one.

    People should stop multiplying threads and actually read existing threads like this one.

  • Check out my thread here which no one wants to reply to:

    What kind of answer are you expecting in that thread ?

    It is half caps locks, half "solution" to an apparent problem you are seemingly having.

    As usual, if you encounter a bug issue with Construct2 consider posting a bug report for it following the report guidelines.

    In that case, possibly the IAP plugin that Construct 2 attempts to go for on its own (when exporting to Cordova, C2 is building an XML file attempting automatically to fetch specific Cordova plugins) perhaps it needs some update and so, possibly Ash needs to be noticed about it.

  • MPPlantOfficial: As far as I'm aware it still should be.

    Phoenixbowman: "On Store Listing Success" is an event that will be triggered once the action "Request store listing" has been executed. Than on the tick of execution where the listing is returned and is true the condition will trigger.

    Purchase successful happens after you have used the action "Purchase product".

    In your second case you should rather be looking for the "Has product" condition rather than "Purchase successful", since you want apparently to check if your user already has bought a specific product in the past, not right now.

    Same for your third case.

    To check whether they are connected to internet or not, you should handle that test yourself, using the Browser plugin and the condition "Is online".