almonds's Forum Posts

  • 5 posts
  • This was extremely helpful, thanks yet again!

    I realized my mistake was omitting the "For each" condition. With your example I got it to work flawlessly.

  • How do you currently let them make sounds ?

    On start of layout -> Play (Enemy sound) looping at object (Enemy)

    Works perfectly if you only have one instance of Enemy, but I can't figure out how to extend this to other instances of the same object.

  • Hi everyone!

    Been playing around with positional sound lately and have a small problem.

    I want to play a positioned sound at an enemy object. As the enemy draws near, the sound grows louder, and as the enemy disappears into the distance, the sound fades too. This is pretty straightforwad to do with the "Play audio at object" action.

    The problem is, it plays the sound only at the first instance of the enemy object. For example, if I have four enemies on the layout, only the first one makes the sound and the other three are silent.

    Is this at all doable with the "Play audio at object" or do I have to do this some other way? I can't find anything in the manual about this and there doesn't seem to be any tutorials concerning positional audio.

    If anyone could nudge me in the right direction, I'd be grateful. Thanks!

  • Hey 99Instances2Go, thank you so much! I got it the basic idea to work by using your fixed xml and following the tutorial you linked.

    As I said, the capx I posted is pretty much a straight copy of a video tutorial found on the Scirra YouTube channel. This is the first time I've tried to use XML in C2, so I wasn't sure at all if it was weird or not. The bad formatting of the XML file was of course just my mistake. Thanks again for putting me on the right path with this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey guys!

    I've been learning to use Construct 2 for the last couple of months and really enjoyed my time with the software. I'm currently going through Jerementor's absolutely wonderful "Platform Mini-Series" tutorial on Scirra's YouTube channel. His way of making a text box with AJAX and XML looks really neat, but the problem is... I can't get it to work.

    The way it should work is this. When player is overlapping a sign, an invisible layer with a text box is made visible. The text box slowly fills with text from an XML file. I can get the box to appear, but not the actual text. I'm currently still using the free version of C2, but I don't think that should have an effect here.

    I've gone through my code line by line until I just gave up and made a testing project with the relevant parts copied straight from Jerementor's example capx, and I still have the problem. If anyone could nudge me towards the solution, I'd be really grateful! Even a hint would be appreciated, as right now I'm feeling quite frustrated with this. Thanks!

    Since this is my first post on the forum, I can't post any links. You can still download my capx from Dropbox or check out the event sheet (it's quite short) on imgur, you just have to fill the latter part of the address line yourself.

    To get the capx, go to Dropbox and then add this to the address line: /s/1nyuadxf2knhvf9/Textbox_test.capx?dl=0

    Or to see event sheet, go to Imgur and add this: /lngNzcw

  • 5 posts