skelooth's Forum Posts

  • Firework is active -> setfirework position (Self.x, Self.y - speed * dt)

    X Firework is active -> setfirework position (Self.x, Self.y + speed * dt)

  • Yes, it did! Extremely simple solution. You can force simulate global access by doing

    Action->System->wait 0.01

    Back to work!

  • This is a very simple plugin that gives native access to the clipboard text when supported, and offers a system prompt when it is not.

    The system adds one expression, Clipboard.Contents

    And has one property, the text to display when prompting.

    Source Thread:

  • You can not use the form control to do that.

    You must calculate and insert the cursor and highlighting yourself. The only other way is to build a keyboard in java for android as a separate app.

  • If you're trying to retain the native copy paste edit features with just overlaying a new keyboard, you're not going to be able to do it. You would need to crack open the android sdk etc and build it that way. As mentioned previously you can restrict the zooming with some meta information in the html document.

    This is the best I can do for cross platform copy paste, but it will not solve the problem of the keyboard. It uses a method similar to things like CKEditor.

    This plugin has native support for paste in only certrain browsers (internet explorer) and displays a dialog prompt for others.

    I'll answer about blurring in another post

  • What if you just use a text object and use the set/get value method, instead of a form control. No keyboard or user focus involved

  • That explains EVERYTHING, thank you so much. That just answered other questions I had and didn't even know I had.

    A very easy way to think about it is that scope applies to created instances, but really, rendering does not happen until after event execution so any scope above it does not know the new sprite exists.

  • Eh, it's pretty easy. If you're good at describing requirements I'll make one for you real quick. Hopefully the good karma will get my answers helped too

    I'm just not sure where to put the variable so it's accessible, so let me know how it's going to be used.

    What if I made a behavior for text objects that reacted to a "update to clipboard contents" action?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Bump.

    I'm positive there's a simple solution or a simple mistake I'm making. Proverbial missing semicolon?

  • You might need to make a plugin to do this.

    https://www.google.com/search?q=javascr ... 2&ie=UTF-8

  • All relevent code is in the file "pcturrents", it's sort of a mess because I've been fussing with it trying to get it to work.

    edit: Link to thread about resource loading. The turrets work fine if the player sprite is already on the layout, but I need to spawn it dynamically because the player will be able to choose from various ships.

    Edit again:

    POC, the turrets will work when called later on. If you start the game with F4 choose campaign, swipe to move over the moon, click the commlink, then choose plunder planet, I stuck a call to it there, and it works fine. For some reason, no matter what I do, I can't insert code to run right after the object is created. Help!

  • heh, I just had a thread about this yesterday. I moved everything out of the margin and into a separate layout for loading that works MUCH better than putting it into the margin, but there is some execution flow that I'm not understanding. I'll upload something soon

  • Hi Scofano, I can not use containers because the weapons are dynamic (a player sprite can have any combination of guns on available image points, or no guns at all), unless I misunderstood containers.

    The sprite is not on the layout, it is created with a

    on layout start -> create playersprite

  • Some things off the top of my head:

    You can spawn a similar sprite from the same family with different instance values

    You can literally copy paste code

    You can add the sprite to both families and give it an instance variable to compare which one is active

  • C2 is just a visual programming language. It only slows him down because he did not learn it. Otherwise it works and behaves almost like any other language complete with function variables loops and objects.