nimos100's Recent Forum Activity

  • Cheers Noncentz it seems to work now, most excellent

  • Great plugin, however I have some problems, that I hope you can help me with.

    I try to add an image to the archive, but cant seem to make it work.

    The archive gets created but is empty, is there are way to add files to the archives that are already on the disk? I have tried some of the others like add file, both binary and the base64, but with no luck.

    Is what im trying to do possible or ain't I suppose to use Add image like that?

    Thanks

  • Assume you are referring to something like selecting units in a RTS game or something?

    Single sprite

    If that's the case the easiest way to do it I think. (Of course depending if you are using multiple selection or just one at the time) But if you just need to select between different sprites, I would use a variable called "Selected_sprite_UID" and here you store the UID of a sprite when you click it for instant.

    And then you always use this variable when you need to work with a sprite so you avoid suddenly picking wrong sprites. Since it can only hold one UID at the time, it will make certain of that.

    For deselecting you can for instant do like this:

    On mouse Right click
    Set Selected_sprite_UID = -1
    [/code:1pfuv83w] 
    Since an object can never have a negative UID that will work fine.
    
    [b]Multiple selection[/b]
    If you are aiming for multiple selection, you can add a Boolean variable to your sprites called "Selected = False"
    
    [code:1pfuv83w]
    On Mouse Left click on Sprite
         Set Sprite.Selected = True
    [/code:1pfuv83w]
    
    Then when you need to do something with them.
    [code:1pfuv83w]
    Sprite.Selected = True
    For each Sprite
          <Do something>
    [/code:1pfuv83w]
    
    Deselecting them:
    [code:1pfuv83w]
    On Mouse right click
    Sprite.Selected = True
         Set Sprite.Selected = False
    [/code:1pfuv83w]
    
    [b]Selection box[/b]
    If you need a Selection box, you can do that with a 9-Patch
    [code:1pfuv83w]
    9-patch overlapping Sprite
         Set Sprite.Selected = True
    [/code:1pfuv83w]
    
    Deselecting is done the same way as with multiple selection.
    
    To make a working selection box there are some tutorials to make it scale with the mouse as you drag in the tutorial section if I remember correct. However its not that difficult to make.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Are you sure that the For loop "Y" from 0 - 1 is not on the top level so it keeps looping, ain't it suppose to be under the On start of layout? or is it already that in the code?

  • If you store the number in a variable for your sprite then you can do it like this.

    For each Sprite
          System create object Text (Sprite.X, Sprite.Y)
          Set Text.text = Sprite.Number
    [/code:329r6p75]
    
    If you have them in an array you can do it more or less the same way, you just need to get the number from the array instead.
  • Yeah, its the same.

    just updated to latest version of NWjs and to r204.2.

    However it seems to be connected to WebGL. If I set "Enable WebGL = off" the bug goes away and the letter is shown correctly. But with it enabled it cuts off some of the left side of the capital W.

    (Not sure, but I wrote a Textbox in the original bug report, but it should have been a Text object, in case you didn't download the Capx)

  • System -> Create object (Mouse.X, Mouse.Y)

  • I see, you need some of the people that knows about mobile exporting to help you, I know nothing about what to expect from them as I don't make anything for those platforms.

  • It's quite interesting to see people complain about plugs, and say they are migrating to platforms that require coding.

    Im complaining raising awareness of different problems, because I want C2/C3 to be better, and in general I love it, but as with any program you use you notice things that you ought should be fixed or better. So even though people are complaining, its good information for Scirra to get if they react on it.

    But you can't really argue against people looking for other programs, even if that requires them to learn something new. I mean you would do the same with Word, Open office etc. if they didn't work as you wanted them to. So at least for me I fully understand people that want to give some of the others kits a try.

  • Well im not really into Cordova and all those mobile issues. So probably, I cant help you at least. But the performance seems to be 120 FPS no collisions, low memory use. I can see you have paused it, are the numbers you get the same when you run it? Because from what I can see there shouldn't be any problems if this is the performance you get, at least according to the debugger.

  • nimos100

    "- That so many things requires workarounds to function is at least on my very top when it comes to C3, spending close to 70-85% of the time when using C2 creating weird workarounds are really not something that makes C2 shine."

    Exemples? (not asking for a bug report, just what you had to work around so we understand the issue so someone could correct that, as workarounds are the opposite of good design)

    There are so many, so ill just name a few.

    • Video not loading correctly if you set the source during runtime it requires a workaround to make them appear. (Only works sometimes, so have to make another workaround for that again)
    • Images not loading correctly, meaning they overwrite each other. Scirra say its on purpose, but personally I would consider this a bug, as the functionality that you expect doesn't work as intended. Now this gets even better when using animations, as you then have to add animations rather than just frames to avoid them being overwritten. Making the whole load from url completely static, which is a bit weird as you would assume that one of the reasons why you would load something is because you need it to be dynamic and not static.
    • File handling (Nwjs, file chooser) getting required/expected information.
    • Audio can't be loaded in runtime. So a workaround having to use a video object works, however it removes all the benefits of using audio.
    • Pinning several objects to each other causes problems, due to objects pinned are updated to slow. Meaning if you have obj1 and you pin obj2 to that and obj3 to obj2. Obj3 will lag behind looking like there is a performance problem, due to it not updating fast enough, dragging around object already is rather slow so using pin with it makes it really slow. So fixing that, you have to pin everything to 1 object. And in cases where you are making something more dynamic you would have to use a control object to fix it and reduce the slow effect.
    • Path finding....simply to buggy to even start on that, but just needs to be mentioned.
    • Video playtime, is not updated correctly if a video is paused and you tell it to change playtime it will not update until you reactivate it.
    • Video playtime is not correctly paused, if you play a video and then pause it during play, it will pause the video, but if you reactivate it, it will jump forward a bit of time. This is stated in the manual as a problem if I recall, but with the amount of video players and graphic tools I use I doubt that this is something cant be solved. At least the other programs doesn't seem to have a problem with this. Haven't gotten around to making a workaround for this yet. But guess it will be something with trying to subtract the amount it jumps from the playtime, but doubt that it will work.

    Anyway this are just some of them, smaller ones constantly pops up, so its hard to keep track of them all. But a lot of the issues I have added to another post about updates to objects in general, which in a lot of cases are a result of workarounds or general things I have spotted while working with them, trying to do something that C2 can't do, but should be able to in my opinion.

  • Think you need to provide some code or performance data, its really hard for people to debug a feeling that it might be slower

nimos100's avatar

nimos100

Member since 23 Sep, 2012

None one is following nimos100 yet!

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies