oosyrag's Forum Posts

  • What's outdated about it? The multiplayer plugin hasn't exactly changed much since it came out a decade ago.

  • Try:

    Restarting your browser

    Use a different browser

    Disable browser extensions

    Allowing cookies/other privacy settings

    Clearing cache and logging in again

  • Because enemy.x and player.x are never exactly equal to each other.

    Try using a range, or rounding the values.

  • Using a canvas object to display the selected color would be rather cumbersome. Either you have a premade list/dictionary of the selections and colors to fill the canvas with, or you use the canvas that covers the whole area to take a snapshot, look up the color at the coordinates that were clicked, and then fill the display area with that color.

    Personally I'd just use a sprite object with all the colors as animation frames, and set it the right frame when selecting a color.

  • You do not have permission to view this post

  • Use a timer behavior on the damage text. On damage, if a timer is running, add the new damage to the old damage. Then create a new instance of damage text.

  • This is commonly done by saving the previous coordinates of the mouse (store in variables at the end of the tick), comparing that against the current position of the mouse, and moving the camera object the same amount from its previous position.

  • Use an external text editor - save the project to a folder, and then you can edit it as a text file.

  • Sorry button without the . was probably correct, as the element itself. Maybe try making the css selector .mybuttonclass and putting mybuttonclass into the class property of the button object in your project?

  • I just tried this myself and it's actually not working as I expected either, will mess around with this a bit and update.

    Edit - derp the animation frame starts at 0 and the animation frame count starts at 1, so the current animation frame needs to be compared to animationframecount-1.

    dropbox.com/s/jer37gojqns6on3/incrementdeckexample.c3p

    Event sheet 1 is the way mentioned by tarek, which is probably the most compact way, where different animations in the same sprite objects are separate decks.

    Event sheet 2 is using different objects for different decks. You can put them in a family (which I don't currently have access to) as well to make things simpler.

  • .button, not button.

  • I believe saving to local storage is hidden/disabled in chrome where you have the ability to save directly to the local file system available.

  • For a larger set of data, I would use an array, with an instance variable to store the picked value. Upon randomly selecting an index, delete it out of the array, and store the value in the instance variable. You can push it back into the array when the next value is chosen.

  • Functions don't preserve picking, so you're selecting all spheres as it is right now anyway, which may be your problem.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not sure if loopindex works with For Each?

    Try using Repeat (or For) sphere.count times instead.