mindfaQ's Forum Posts

  • Problem Description

    I tried the audio effects example of scirra as preview in Opera Developer 29. Clicking on a sfx will start it once and once it's over, no other sounds will be heard again, ever. If I spam click after the first initial click, it will start the sound multiple times, but all the sounds playing will cut off, once the initial sound has finished playing.

    Attach a Capx

    it is in the scirra examples folder

    Description of Capx

    In part it is supposed to start sounds by clicking on buttons.

    Steps to Reproduce Bug

    • browser: one of the recent Operas I guess
    • keep clicking on sfx buttons

    Observed Result

    sounds will cut off after initial first sound effect has finished playing

    Expected Result

    sounds continue to work

    Affected Browsers

    • Chrome: (don't know)
    • FireFox: (don't know)
    • Internet Explorer: (don't know)

    Operating System and Service Pack

    Win 7 Home 64bit

    Construct 2 Version ID

    r198

  • I tried:

    Write file: file "test.txt", contents "abc"

    and exported the project.

    I would expect the file "test.txt" to appear in the exported program's directory, but it doesn't. What's wrong? A working example would also do the job.

  • Hello guys,

    so I've made a construct application that watches for something to change, and if it changes, I want to be able to notify people (it's for an online game). We use an IRC channel, but I guess posting my data to IRC ist to complicated, so my other thought is, that I could go and try to post that data to a text file on a server, that then an IRC bot surely could watch and, if it changes, notify users in the IRC channel.

    I use that program in form of a node webkit.

    How can I do that?

  • I don't think steam has C2 workshop-support, at least I have not seen it. Community forums from steam can be used without having the program on your account and are not very active. I wonder what you miss. Afaik be glad that you have the standalone version, since it doesn't have the performance bug and it is less of a hassle to run multiple instances of construct.

  • Something like this?

    https://copy.com/khmGMFr3tkug2i8o

  • That's why you have to build a system to decouple it from fps. Dt works to an extend, but like you said in the turning example, you need to keep those loopholes in mind when you code it. So you could do the rotation like this: https://copy.com/f4EoDCM2a2LnffYG

    In a similar fashion you can build a system that generates the right amount of bullets, no matter if your game runs at 1 or 60 fps and then moves them at the correct location (maths involved). Try to keep it simple of course, since a lot of bullets means a lot of calculation. I just don't see how the "every x seconds" can work in such cases (same for tower defenses for example).

  • You've bought the license here? Then you won't get the steam version with it. You can add a non-steam-game to your library though and with this add construct to your library. Autoupdating through steam won't work, though. (correct me if I'm wrong)

  • You do not have permission to view this post

  • I'd probably keep track of the sprite currently selected in a variable, and then use an expression like:

    pick selected = 1

    ap = 0: set selected = 0

    -- (subevent)

    -- pick all

    -- pick instance with highest ap

    -- ap > 0: selected = 1

    Other idea would be checking the ap with a function, that you call after every ap using event, that checks if the ap are 0 and if they are, run the selection again. Performance-wise this would be a bit faster than running the event every turn.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well, it does rotate... how exactly do you want it to move.

  • opacity 0 instead of invisible

  • Of course. Just use sprite1 is overlapping sprite2 as condition, make sprite1 visible. Then in another event sprite1 is not overlapping sprite2, make sprite1 invisible.

    or

    for each sprite1

    • is overlapping sprite2: make visible
    • else: make invisible
  • use

    System -> Pick all

    before making your second selection

  • Keep track of the path with instance variables, for example give the grid a cooldown variable.

    Then before picking a random instance, pick instances which have cooldown = 0.

    When the ball moves to a spot, give that spot a cooldown variable of two (if it should not be allowed to move there the next turn, but the following turn). At the end of the event you pick all instances with cooldown > 1 and substract 1 from them.

  • just want to show that it is not hard to implement something like this yourself without a plugin:

    (there are probably even simpler ways to implement it)

    (saving start time and substracting it from the game time could be more exact for keeping track of the period, I know)