CrudeMik's Forum Posts

  • Perfect, thanks a bunch

  • great that makes sense but I'm getting errors from dropbox downloading your file :(

  • vee41 Hmmm I totally understand how to use the variables to tell the game what layout to go to but I'm struggling to figure out how to get the player to spawn in the correct location. I've updated the original capx with where I am at at the moment.

    Thanks

  • Ah that sounds good I'll try it out and report back!

  • Hi all I've just prototyped a 'door' mechanic which is trying to emulate the way traditional 2D games like Cave Story work.

    https://dl.dropboxusercontent.com/u/3317708/DoorsPrototype/index.html

    Here's the Capx https://dl.dropboxusercontent.com/u/3317708/Doors.capx

    My objective is to have the player spawn in the new layout from the door they just used.

    If you see in my Capx my method uses quite a lot of events, I'm wondering if anyone can think of a more efficient / streamlined approach to creating this system? I can imagine that as my project gets bigger, it's going to be a hell of pain to keep track of all these doors in the way I'm currently doing it. Any info on this would be appreciated.

    Best,

    Mik

  • Oh yeah you are right! Thanks

  • I'm looking for ways of being able to tag objects to save repeating code. Example, I want to tag all my physics objects as being "Physics" so that if I shoot a weapon and it hits an object tagged as "Physics" the object reacts.

    Currently I'm typing events like "Bullet on collision with objectA" and repeating it for each object the bullet collides with.

    I tried grouping objects as a family but onDestroy seemed to destroy every single instance of the objects I grouped.

    Am I just being an idiot? Probably.

  • Yarfapet - that looks ace!

  • Ahhhhhhh that's easy - thanks guys!

  • Thanks, I don't quite understand how to use it though, I'm using it here:

    set text: "Time " & zeropad(0,hours) & "h" & zeropad(0,minutes) & "m" & zeropad(0,seconds) & "s"

    and it's just constantly adding 0 to seconds...

  • Hi all I've a clock in my game and I have 3 variables for hours, minutes and seconds.

    I am printing these into my scene and it appears as "0h 0m 0s" but I want it to look like "00h 00m 00s"

    Is there a way to print these variables as double digits?

    Best,

    Mik

  • Hi - I'm trying to create a spawner object.

    I want at random intervals each spawner to spawn another object - but I can't work out how to make it so each spawner is independently random. At the moment, every spawner object spawns at the same time.

    I would post a cap but my project is quite big, if there's no easy fix I'll re-create what I've done in a blank project.

    Thanks all.

  • I wonder if there's a way of building an emitter object that uses string variables to call a sound file, set a range, roll-off factor and also pitch.

    So you only need to make one emitter object to call all the positional sounds in your game.

  • You can increase the roll-off factor in the audio object properties to achieve this effect.

    You can also adjust overall ranges here too, but I think we need an option to have custom ranges and roll off factors so that some sounds can be heard at greater distances to others. The way unity handles 3D audio is a good source for inspiration here. You drop in an audio emitter object, assign a sound to it and then set its range / roll-off factor.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Link to .capx file (required!):

    dl.dropbox.com/u/3317708/AudioEmitters.capx

    Steps to reproduce:

    1. Place several audio emitters

    2. change timescale of emitter audio, trigger once

    3.

    Observed result:

    constantly shifts timescale instead of changing timescale of each sound once only.

    Expected result:

    Random pitch variation between multiple instances of sound. I'm trying to add subtle pitch variation to a sound to avoid phasing when the same sound is being played multiple times within range of itself.

    Browsers affected:

    Chrome: yes/no

    Firefox: yes/no

    Internet Explorer: yes/no

    Operating system & service pack:

    Construct 2 version:

    r123.2