ramones's Forum Posts

  • You only want to set the angle when the user is touching the screen. If they're not touching then you'll end up setting the angle toward (0, 0). Just add a 'Touch: Is in touch' condition.

  • Set the alpha value > 0.

  • No and yes. Mirrored just means it has a negative width. If you have a sprite with width 100 you can set it's width to -100 on the layout and it will be mirrored.

  • str(int(LayoutName) + 1)[/code:1ivq9v1l]
  • Where you have 'Set number to BlobFamily.PickedCount', PickedCount will always be 1 since you've just created a new Blob and it will be the only one picked. Use BlobFamily.Count instead in those two actions. And I'd add a 'Blob is NOT pinned' condition to the top of event 3.

  • Hmm... I only tried in Firefox. In Chrome, it seems that TextBox.Text returns nothing when the input isn't a number. You could store the last value in an instance variable and if the text changes to "" then restore the old value. But then how do you tell the difference between the user typing a letter vs deleting all the text? It might be easier to leave the input type as 'Text'.

  • The number type doesn't prevent you typing letters (as you know). It just tells the browser what type of input is expected and it's up to the browser how it handles that. For example, some mobile browsers would show a numeric input instead of the text keyboard.

    If you want to enforce number input you need to check what's entered and remove anything that's not a number. Here's one way using regex (although this won't even allow a minus sign or decimal point):

    [attachment=0:2rjimvb0][/attachment:2rjimvb0]

  • [quote:24fbi7zo]3. webstore can only be conveniently loaded via json to a dictionary, so if i want it sorted, i have to transfer the dictionary to an array

    4. to delete selection items in a list from the webstore its necessary to either keep track of the key of each item in the list, or to use the name of the item in the list as ke

    You seem to be saving each item in the list as a separate WebStorage value and then loading all of WebStorage into a dictionary to load it. It would be easier to keep the items in an array and save/load the array.

  • Your keyboard isn't broken as such... it's just a lot of keyboards don't support certain 3-key combinations. Up + Left + Space is a common one.

    http://www.microsoft.com/appliedsciences/content/projects/AntiGhostingExplained.aspx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In the 'Function: Compare parameter' condition you just need to use the index of the parameter (0 or 1) and not 'Function.Param(0)'.

  • Set 'Default controls' to 'No' in the platform properties.

  • Use the Timer behavior. Add it to the text. On text created -> start the timer. When the timer goes off -> game over. If the player clicks and destroys the text first, the timer won't go off.

    You could use the Timer behavior on the ghost as well to trigger every 5 seconds and spawn the text.

  • Set filedata to Nodewebkit.ReadFile(NodeWebkit.UserFolder&"debugfile0.debugdata")

    You're missing the Nodewebkit.ReadFile() so you're just trying to load the filename into the dictionary.

  • Can you start with an array of width 0 and just push new values onto the end of it? Or do you need those blank elements in there?

  • Yes, just set it to a fixed number. Instead of 'bird.Y - 700' just use '-500' or whatever.