WackyToaster's Forum Posts

  • Here's an in-depth post about it + a section about solutions

    construct.net/en/blogs/ashleys-blog-2/surprising-difficulty-1528

    Generally you'd want to avoid cutting sprites off directly at the edges, that's why the image editor in Construct adds a 1px transparent border around sprites by default. If that doesn't help, you can use the higher downscaling quality.

  • Problem: I wish to store the images in a prepared sprite like - "Load from URI(Sprite.CurrentImageAsURI)"

    Why'd you like to store it in a prepared sprite? Is there a reason you cannot use an ajax request to load the image? If you only want to load the image once, you can store it inside a binary data object and load it from there.

    And for changing a variable to change the theme, that's also possible with this approach. You can request a URL with ajax rather than a file, that you can point to the local resources by string and just add the global variable in the name. So you'd request "stringsub("./tiledfile{0}.png", globalVar)

    This would request e.g. tiledfile1.png or tiledfile2.png or tiledfileVolcanotheme.png, etc.

    I wouldn't attempt approach 2.

  • You do not have permission to view this post

  • There's a thread for this

    construct.net/en/forum/construct-3/general-discussion-7/windows-security-block-181649

    But it sounds like you may have found a potential culprit. Maybe post in the other thread instead since there's already discussion happening.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It can be fun from time to time but I personally don't watch too much of that type of content usually. I think Randy is fun to watch and he has that typical australian humor to it. youtube.com/@randyprime/videos

  • It's probably just a false positive as usual in these cases? But even virustotal doesn't show a single false positive for me. There's also the possibility that something actually injected the trojan into the file (some weird browser plugin, your system is compromised,...)

    This never popped up for me but it appears to be quite a common thing actually according to reddit.com/r/computerviruses/comments/x1af2y/any_chance_that_trojanscriptwacatachml_is_not

  • I kind of wanted to say that you can simply work around it like this

    I feel like it should work but it absolutely doesn't. I also tried a sprite and it also does not behave as expected. I also tried pick by overlapping point instead, which also doesn't work. It seems to be weirdly offset from what is visually seen on the screen at best. I'm not sure exactly what is going on there but it might warrant a bug report?

  • What resolution did you make your game? In the project properties you have the "Viewport size" setting that you can adjust to your needs. Or as an alternate solution, you can scale your sprites down to the size you want them to be in (but I'd recommend the first approach)

  • You do not have permission to view this post

  • I believe if you are using the latest Greenworks/Greengrinds addon and NWJS 82 or higher, you don't have to add any of those libraries.

    I don't? Now I'm just confused :V

  • It's in the platform info plugin.

    Platform Info: expressions 'FramesPerSecond' and 'TicksPerSecond'

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • I agree on the list approach. Keeping a list of x,y positions of tiles that are available to claim makes sense to me.

    To find the nearest tile without resorting to sprites, you can use the distance expression. You'll have to go through the whole list though to find the nearest but I think "pick nearest sprite" doesn't really do anything different to that. So you would go through the whole list, store the distances of each and then use the one with the smallest distance.

    But realistically, there is nothing really wrong with just using invisible helper sprites either... It's a functional solution with little to think about and probably already optimized to run as fast as possible. Many roads lead to rome.