AllanR's Recent Forum Activity

  • the easiest way would probably be to give the thrown object bullet behavior with a strong gravity, then work out the bullet speed required for each location.

    is the enemy above the player? or on the same level? and how much can the player move around?

  • I am not sure Maverick understood what you were after...

    You can make a custom "button" by using any Sprite, and then use either Mouse or Touch events to tell when someone has clicked on the image. Touch is the best option because it will work with both mouse and Touch.

    You can set the opacity to zero, or set the sprite's Visible state to Invisible, BUT neither of those setting will stop the "button" from working. The touch events will still work even though the user can't see it. So you must add another condition saying Sprite is visible, or move the sprite off screen, or use some other method to stop the button from being clickable.

    If you are using the built in Button object, then you do have to use CSS to change the buttons appearance, but those types of buttons float above everything else on the canvas and are harder to get the results you want. I would definitely recommend using a sprite instead!

  • rather than using AbsoluteX and Y, I would use just X and Y and specify the layer name

    Touch.X("UI") and Touch.Y("UI")

    This is if you want the object created on the UI layer. If you want the object created on a different layer then change the name of the layer in the brackets to get the correct coordinates for that layer.

  • 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

  • You do not have permission to view this post

  • well, you are correct - that is pretty simple and there are no obvious problems with the events.

    the sdk says there are two levels of debugging logs that get output to the console. you could try that...

  • invisible sprites can still be clicked on.

    I would be happy to take a look at your test file.

  • without seeing your code, I would guess that some condition is true for multiple ticks which results in the results be sent multiple times.

  • make the sprite a container, and add the json object to the container. Then the json object will be automatically picked when you pick the sprite.

    Edited by mod to add the link to the containers manual article

  • I quite often do something similar, but instead of using a listbox, I use a text input box set to be a textarea. This updates as things happen and allows you to scroll through the output. Just remember to append a newline at the end of each message.

    another thing you can do is output messages to the browser console.

AllanR's avatar

AllanR

Member since 21 Nov, 2013

Twitter
AllanR has 23 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

19/44
How to earn trophies