Fimbul's Forum Posts

  • I'll correct that and optimize it to make less redundant checks. Going to optimize my spaceship movement too. Thanks for the help!

  • decrypting the images would take processing power that's hard to come by, what with HTML 5 not being THAT optimized, we need all the power we can get.

    Also, nothing will protect you if people want your images bad - look at the ton of mario/sonic fangames around. They can't make anything commercial with it, though, so you're pretty much safe.

    Even if there was a solution to encrypt images, it probably wouldn't be be developed by Scirra.

    Closest thing I can think of would be renaming all your images to random strings and updating the references in the runtime.

  • Please do feel free to comment on what you thought of it and make suggestions :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You're getting that error because this is not a plugin, it is a behavior. You should extract it to

    \Construct 2\exporters\html5[b]behaviorsinstead of

    \Construct 2\exporters\html5[b]plugins

    Also, you'll need to create a sprite object and then click "Add/edit" on the behaviors pane, then add this as a behavior.

    sorry that it wasn't clear.

  • Hello!

    I've been working on this plugin for a couple of days, and am now messing with the SOL, so that I can return the objects that obey the condition, as would be expected of a plugin of this nature.

    In the example, there are three objects. When they enter the arc, they are selected, and the ones who didn't enter the arc are not selected (as expected).

    However, when they enter the arc and then leave, if one object stays within the arc, objects that were selected remain selected, even if they are outside the arc - in other words, as long as at least one object stays in the firing arc, the other objects can't be deselected when they leave!

    I don't know what the problem is - my "check between angle" and "check within range" functions are OK, so the problem has to be somewhere else

    I know my code is a horrible mess and I probably did things in a crazy inefficient way, so forgive me for that.

    Example file with behavior: http://www.sigsonic.com/turret.zip

    Live preview courtesy of DropBox

    This is not fully functional yet, so some options are missing or might not work.

  • Updated to work with r51. I guess I'm the first 3rd party extension compatible, how cool is that? :D

  • did you get the indie or commercial version?

  • Actually I was wrong, it works for if() and functions, but breaks for returns:

    Check 30:40

    Subscribe to Construct videos now

    Maybe ECMAScript 5 strict mode is fixing it, I don't know, but it certainly breaks things in conventional javascript in some occasions.

    I prefer the curly braces below the statement too, but what can I do? :(

  • Please provide more details on what you're trying to do.

  • Are you using your own custom movement or this:

    http://www.scirra.com/forum/behavior-spaceship-movement-behavior_topic44038.html

    ?

  • blueFire, you can create invisible solids and place them inside your walls.

  • Not yet, but it probably will in the future. Do you really need pixel perfect collision though?

  • Using a dropdown list for a boolean options sounds like a waste, but the important thing is the sliding bar, so that the user knows it can only select values within a range, as is the case for angles and certain speeds.

  • Indeed pure madness.

    The style

    if()

    {

    }

    is incorrect in javascript, and must be written as

    if(){

    }

  • I was wondering if we could get some other control types for parameters, for instance a sliding bar, a checkbox, checkbox list and so on.

    Also, will we have more forums for C2? Such as "examples/tutorials/articles" and "plugin/behavior development/releases"?