ramones's Recent Forum Activity

  • You can compare Touch.X to scrollx.

    [attachment=0:3t8601xh][/attachment:3t8601xh]

  • You do not have permission to view this post

  • This can happen when your animation has frames with different collision polygons.

  • 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'.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

ramones's avatar

ramones

Member since 17 Apr, 2012

Twitter
ramones has 4 followers

Trophy Case

  • 12-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

15/44
How to earn trophies