oosyrag's Forum Posts

  • You can set up "states" for animation. On key press, change state to "attacking". Use trigger once while true to play the animation based on the state. Use another trigger event for when your animation completes or a timer to change your state back to idle.

  • IIRC, with R0J0's paster/canvas plugins, the method was to shift the viewport, paste it to the canvas, then move the viewport back, resulting in two views. Please correct me if I'm wrong, since I never actually tried that plugin myself.

    Is this not possible with C3's drawing canvas due to the paste object action only happening at the end of each rendering frame and outside of the normal order of events and actions?

  • Try using a larger z-elevation difference? The range is from 0-100. Maybe you can't see the parallax effect if the value is too small, and the 9patch is the size of the screen.

    Also, z-elevation won't visibly show anything besides a size change if you aren't scrolling.

    Another thing is to remember z-elevation is not the same as z-order, I had been confused about that before.

  • Are you using physics, platform, or a custom system for movement?

  • Alternatively you can have two behavior states, default is random motion, second triggers when distance is greater than range, move back towards center of constraint area.

  • This should probably go into the suggestions page at construct3.ideas.aha.io

    I for one think its worth looking into, as WeChat is literally the biggest platform in the world by users, although mostly focused in Asia.

    Unfortunately it's probably a long shot, as we'll need to export/compile as a WeChat Mini Program rather than just HTML5.

    Here's a nice primer/summary before diving into the Mini Program SDK and API - lewagon.com/blog/wechat-mini-games-making-noise-how-developers-get-started-guickly

  • What does your z-order list look like? Layers take precedence over z-elevation.

  • Regarding outside corners, I'm using a slightly modified method than from the article. Rather than just one ray at each corner, I'm using two instead, at 0.1 degrees offset at each one so I'll get one that collides and one that doesn't.

    For why I didn't cast at imagepoints, the second part of the example is where I experimented with that (Method 2: By coordinates). More issues popped up than via the first method, although they seem to be gone with the latest update.

    I'll probably end up drawing individual triangles instead of one big poly. Although I avoided the self intersecting problem, other visual glitches popped up, I had another github post on that one.

    Most of the expressions produce a default value of 0 if there was no hit, but for distance it could be because the ray was colliding with an object at it's origin position? More likely that there was no collision.

    The issue here was that I didn't set the line's width to HitDistance unless there was a hit detected as the condition. So there was a hit, and it returned 0. I don't see it occur in R144 at all though.

    With the update, both methods consistently behave as expected. So far so good, thanks!

  • I believe OP's particular issue is that his existing datasets in Google sheets are formatted differently. His primary data is vertical, in the "Y" axis, and subdata is in the "X", so copying into the array editor in the same arrangement is not ideal. I'm assuming he already has a significant amount of data to work with in Sheets and would like to avoid changing it all.

  • I've tried to tackle this before. Try this out - construct.net/en/forum/construct-3/how-do-i-8/csv-similiar-array-json-vice-129070

    No guarantees it will work though, as different programs export csv in different ways and I definitely didn't account for all of them. If I remember correctly it should transpose the x/y for you too. Let me know if it works, if not send me a sample exported .csv and I can make it work.

  • In the paid version of C3, you have access to the array editor, which allows you to paste a spreadsheet directly into C3.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • X usually comes before y which comes before z. x is horizontal and y is vertical. Easier to visualize based on a coordinate system maybe? Also consistent with the other ways xyz is handled in construct. Perhaps it makes more sense to someone who has not had programming experience before.

  • dropbox.com/s/m6x32uzqcjlf8sk/VisualLOS.c3p

    The bullet behavior with bounce off solids treats corners as rounded. Any way around this?

  • There is an option in the join room action that lets you lock when full. Disable that.

    Also there is no reason to disconnect from the signalling server. You can leave a room and join another room without disconnecting from the signalling server.

  • construct.net/en/blogs/construct-official-blog-1/remember-not-waste-memory-796

    Best practice:

    a. Use a combination of tiled/repeating backgrounds in addition to unique, smaller sprite instances placed in a variety of ways (color, size, orientation).

    b. Use tilemaps

    In addition, you can use smaller images and scale them to fit larger areas for cases where resolution doesn't make a big difference.