Kyatric's Forum Posts

  • Maybe Ashley could have a look at this to offer a better readability.

  • Then in the field where the layer is aksed, don't put 0 but "0" (with the quotes).

    The number alone just refers to the layer number 0, that is to say "broken parallax". Instead of 0 try a more relevant name like "Action" or something of the like and always remember that the name (string) is to be put between quotes.

  • I guess you'd expect the X to be horizontal ? How should the display of a width of 100 be performed then ?

  • A few megas I guess, depends on the bandwidth you have at disposal.

    It sounds like you're lost in trying workarounds but the issue is actually somewhere. The fact that a background image requires a browser refresh is already a sign that something's wrong.

    Was it an image you were loading from outside of the project or the texture was imported within C2/the project and available on export ?

    You might want to be checking for errors on your exported project and see if there is any issue that the console rises that could give a clue about what's going on.

    Is it really a necessity to display the loader screen ? I mean, it's just having the user wait instead of using the application. And also, if there's nothing to wait for since it's already downloaded, what is the point of adding some ?

  • The regular C2 loader will display if there are data to load.

    Try to add "massive" sprites to your project (in the "Main" layout likely) that take some time to download and you will see the regular loader appear (if you modify the project's property "Use loadout layer" and set it back to "No" of course)

    Also be aware this will likely work on your first preview/loading. Unless you clear your cache or "force reloading" according to the browser you are using.

  • You do not have permission to view this post

  • Let's assume your baby dragon is an animation composed of 3 different frames of 3 different colors (one for each number of lives). Set the speed of this animation to 0 (so frames don't go by and a single frame is displayed).

    In the condition "Fireball on collision with baby dragon" (however you made it in your project) make sure to remove one HP from your dragon (probably in its instance variable HP) and then add subevents checking out what is the current value of this variable.

    According to the value, set the appropriate frame.

    You're likely to have a more precise answer if you post/attach your current project to the post asking for help, since it's not easy to guess out what you've made so far.

  • If you add a "System: Wait 3 seconds" action in event 2 (before the "go to layout" action) in the Preloader event sheet, you actually do see the progress bar at 100 %, and 3 seconds after, there is the move to the next layout. (seen in preview mode when the "Preloader" layout is active and you execute preview from it)

    So apparently it seems there isn't enough data at the time to have a "proper" loading time.

    Make sure to also make "Preloader" the "Default layout" in your project properties.

    At the moment it is set to default, and due to the order of the layouts, "Main" is executed as first/default layout of the project.

  • Just post/attach your capx, there's so much that can be going on, it would be easier to check out.

    Also "Parallax". No "h", it might help you in case you decide to search for the specific keyword. ^^

  • To help out other people that might be looking for the same issue, I'm attaching here an example I had made a while ago of dialog popups within the game itself.

    It's based on SpriteFont and Layers and displays several ways to indicate what text to display according to several "NPC" instances.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can also achieve the "random lottery" behavior without use of a third-part plugin.

    See the attached and commented capx. It uses two arrays, but hopefully the comments will make it clear and simple enough.

  • Well it's all already in R175.

    The view is not centered on the condition/action itself but at least when you have found the event/action you're looking for and selecting it, you have the event number on the left column that lets you know where it is in the current even sheet.

  • It would make more sense if you attached your capx to your post. We could look at it and see what exactly you mean by "copied sprite index".

    I guess you're actually talking about several instances of several object types, but hard to be sure without that support.

    If you have a look at the "How do I FAQ" there are several examples of "instances overlapping" as well as "Picking / selecting instances".

    I hope this can help you, otherwise as mentioned, provide your current capx with as precise description to what you want to achieve as possible.

  • And what about Scirra's Tutorial section "Capx Example" ?

    Doesn't your website be a double that we could do without ? Sure it provides "more" sorting, but in the end it's spreading the informations out to another website instead of keeping all the possible resources in a single spot, isn't it ?

  • Yes. See the attached capx, it's pretty straightforward.

    The only subtlety lies in the fact that the "On changed" trigger does not fire while you are dragging the bar (which is normal).

    Making it an "or" block and comparing the value with a stored "former" value helps with the issue.

    For the sake of forum readability could you, please, consider posting a more relevant/informative title for the topic.