larrynachos's Recent Forum Activity

  • Quick follow up, one of my events breaks when I leave the initial screen of the layout and move around the camera. I have an event set up so when I click the tilemap in an editor window (separate layer, paralax 0,0), but it selects tile id -1 instead of the tile I clicked on. I'm assuming it's not translating the mouse coordinates to the editor tilemap because of the parallax (the tilemap technically isn't moving). I think this because if I move my camera into the top left corner, I can click on the tiles and select them properly. Is there a way to fix this? mouse position and absolute position both result in the same thing.

  • I'm working on a level editor, and when placing enemies I have it set to spawn a sprite on the object in the editor menu, but here's the catch. I'm trying to get away with using just one sprite object, and using different animations to represent different objects/enemies. To identify which object is which, I assigned a variable with a number to correspond with each object preview animation. However, when I try to spawn the second kind of object (a snail enemy), it spawns the object, but with the first object animation (a slime enemy). In the debug, it shows that the newly spawned object (the one placeable in the editor) won't spawn with the proper variable (it's at 0 when I want it to spawn as 1, so it will switch to the second animation).

    Pls help

  • I'm building a level editor, and right now I'm trying to use tilemaps for both terrain tiles and objects (like boxes). I would like to check when the level is tested for box tiles anywhere in the level (by tile id), delete the tile, and replace it with a sprite object instead (so I could make it interactive). If it works properly, I could probably use that method for things like coins, collectibles, doors and stuff.

    Also, would it maybe be better to use sprites instead of tilemaps for objects? I just considered that maybe I could maybe assign customizable properties to things like enemies and boxes (properties like health or loot or timers, idk).

  • No rush, but any updates?

  • Instead, you should use Audio.PlaybackTime(Tag) for everything.

    Oh man, how did I never think of that?

    Fixed my capx to include that, but something's not registering with the event. If I do if Audio.PlaybackTime("blank") >= 6.62 (in debug, the time is rounded to 6.62), it'll stop on the first bar and not play any of the other ones.

    I set it to 6.6, which almost does the trick, but it's still iffy. Also, sometimes in the debug I'll pause it and the times for a few of the tracks aren't the same as the rest (off by like 0.01 or 0.02, but noticeable).

    Updated capx: https://www.mediafire.com/?qy02hu2y52x2b3n

  • I have no experience with timing of sounds so this is all a complete guesswork, but did you do the timing with the overlapping the pattern with your seekbar? I wouldn't do something what needs a exact timing with a collision or overlapping event.

    I would put the pattern in an array and use the array to play the sounds in the correct order.

    Okay, so the overlapping isn't the problem. I tried using a function that loops itself every 6.621 seconds (the EXACT timing of all of the loops), but there's still a timing issue. This is what the function looked like

    And since I'm getting desperate, here's the capx: https://www.mediafire.com/?nrdsqhvdd45b0mg Please don't use it for anything more than helping me :X

  • I have no experience with timing of sounds so this is all a complete guesswork, but did you do the timing with the overlapping the pattern with your seekbar? I wouldn't do something what needs a exact timing with a collision or overlapping event.

    I would put the pattern in an array and use the array to play the sounds in the correct order.

    Sorry for the late reply; this week's been nuts. I'll definitely try that! I'm not a big fan of arrays, but today's a good day to learn

  • Bump. Pls ;-;

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Bump. Guyyyys, I'm really at a loss here.

  • There might be a solution where I play all of the audio files looping and muted, but I unmute the tracks that are meant to actually be playing. This would take up a lot of events, so I'm wondering if there's an easier way?

  • Lost cause, eh? Darn.

  • Glad to hear that there's finally progress! Leaderboards are all I really need, but any chance for user-generated content support? There are a lot of cool games on NG that uses it, and my brain is teeming with possibilities.

larrynachos's avatar

larrynachos

Member since 6 Jan, 2013

Twitter
larrynachos has 1 followers

Connect with larrynachos

Trophy Case

  • 11-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies