nutmix's Forum Posts

  • I just tried to import a WAV file, got same error. converts to m4a ok, fails on OGG.

  • Our company only ever gets its audio supplied as mp3, WAVs are impossible.

    When I import our mp3 music clips, it always says "MP3 audio (cannot convert to OGG).

    The manual says it does convert to OGG.

    any ideas why it would fail?

  • Nice one BluePhaze. I have read the manual many times, but never know where to look. But you are right, should have looked harder, as there is a shortcuts section. F5 will save me a lot of arm lifting!

  • Hitting the (>) icon at the top of the page requires moving hand of keyboard to mouse. This is too much for my thin nerdy arms.

    Is there a Function key or other short cut to run the project/Layout?

    If not, how to I request such a feature? F12 or Control-Enter or similar

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Dammit, I just saw that blackhornet already did it.

    C2 really needs a central place where people can upload their plugins, and we can find them and peoples updated versions of them!

  • I have modified it to allow this setting the start value

    I hope Joe7 will forgive me for updating it.

    I also packaged it as a drag and drop addon & put it on github

    The source, .c2addon and test capx are here: https://github.com/nutmix/RandomArray2

    Use the gitub issue tracker to register bugs and feature requests.

    If you want to modify the source, edit the docs, or improve the demo. please go ahead (by branching then requesting a merge)

    I recommend using https://code.google.com/p/tortoisegit/

  • I liked joe7s plugin, but needed to be able to set the start value.

    I have modified it to allow this.

    I hope Joe7 will forgive me for updating it.

    I also packaged it as a drag and drop addon & put it on github

    The source, .c2addon and test capx are here: https://github.com/nutmix/RandomArray2

    Use the gitub issue tracker to register bugs and feature requests.

    If you want to modify the source, edit the docs, or improve the demo. please go ahead (by branching then requesting a merge)

    I recommend using https://code.google.com/p/tortoisegit/

  • Maybe instead of the RandomArray plugin you could use the standard array?

    Fill an array with random numbers

    Thanks for the suggestion LittleStain. I need to fill an array with unique random values. One way to do this is to fill the array with consecutive values, then mix them up (which is what I think the RandomArray does). To do this in C2 would be pretty hard. To do it in JS is very easy. The problem for me, is that its impossible to pass back arrays or multiple numbers from a plugin, only string or single numbers.

  • As a rough guide I did this:

    1) set the canvas to be 640x832 (iphone 4 4s size with address bar gone)

    2) anchor the outer ui ellements to the edge. Note, there are plenty of bugs with anchor, especially if you want to center or use a different origin point, so I ended up doing my own anchoring by re positioning all the UI elements each time a window size change is detected (or you can do it every tick if you want).

    3) I calculate if the main center game area will fit. If its too big or too small, then I just scale that one layer.

    4) I use Crop, with a large backgroud image.

    5) I always switch off webGL, as it screws up text and other items.

    6) set the the "use ios retina display" to iphone only, as the default app res looks good in an ipad without it and no scaling needed.

    Its pretty hairy.

  • At home, I have 2x30" external monitors connected to my laptop.

    In the office, I have the laptop screen and a tiny old external monitor.

    The problem is, when I run C2 in the office, after running it at home, the dialogues open somewhere off screen, and I cant get them back. I literally cant work.

    Link to .capx file (required!):

    n/a

    Steps to reproduce:

    1. use two monitors. open any behavior dialogue.

    2. move the dialog to the second monitor (actually, it usually automatcially opens on the other monitor for some reason, probably because I run C2 on the not main monitor, and C2 by default opens its dialogues on the main monitor.

    3. shut down computer

    4. startup computer with different monitor config (e.g. only 1 monitor)

    5. open C2 (any capx) and try and open the behavior dialogue - its nowhere to be seen, and you cant get it back.

    Observed result:

    Cant see dialogues

    Expected result:

    Can see dialogues, or some way to get them back in view.

    Browsers affected:

    Chrome: yes/no

    Firefox: yes/no

    Internet Explorer: yes/no

    Operating system & service pack:

    Windows 7 64 bit.

    Construct 2 version:

    1.39

  • the RandomArray plugin defines 2 properties which appear in the editor on the left under properties. I.e. Width and StartValue. These can be set by hand.

    However, I need to set the startvalue property dynamically at runtime.

    I cant find any way to do this (unless I try to extend the plugin I guess).

    Does C2 expose a way to edit a plugins properties in the event sheet? I tried the "set value" under instance variables of the object, but this doesnt work. Basically, I need to somehow evaluate the expression: "RandomArray.StartValue = loopindex" or similar.

  • Yes, switching off WebGL has fixed it.

    Result!

  • If you have something like a single bingo card(ticket), it consists of 25 hand placed text or sprites representing the numbers, plus back ground images, daubed state etc.

    If you have a variable number of cards, it makes sense to create one card,then clone it at runtime (depending on how many they purchased) and put them in different locations.

    I.e. you are making a new object (the bingo card) out of lots of smaller objects.

    Is there a way to do this?

    I tried using families, but this fails because:

    1) you can only put the same type of object in a family. e.g. only sprites

    2) you cant seem to clone a family and change its position (at least i could not work out how.

    I saw you can put objects into a container, but:

    a) I dont know what the container object should be (there dont seem to be any container type objects)

    b) Once you have a container object, I dont know if you can clone it to create complete copies, and access their sub objects.

    Even nicer would be if you could associate events/behaviour with this composite object, like you would in an object oriented language. E.g. so you could say something like "foreach (bingocard) {bingocard.generateRandomNumbers()}.

  • Hi, would be an excellent plugin, and exactly what I need, but why is it fixed at starting at 50? Is there any way to set the start value? e.g. I need to pick 5 unique numbers in the range of 15-30, then again between 31 and 45. I could do this by setting the width to 15, and picking the first 5 numbers, but they all start at 50!

  • Hi, the download link is broken, can anyone post up their copy? I desperately need this plugin!

    When is C2 going to have its own plugin repo which plugins can be uploaded to?