AllanR's Recent Forum Activity

  • candyman201

    if you don't want the player to be able to see past solid walls, it get slightly trickier.

    see this thread from a few weeks ago for more suggestions:

    https://www.construct.net/en/forum/construct-2/how-do-i-18/field-view-walls-143211?kws=lightmaskwalls

  • RobertoFreemano

    C2 also has Local Storage... don't use web storage, browsers are not supporting that anymore.

    you could also use the Save/Load under the system object which simplifies the process a little.

  • luckyrawatlucky

    the one advanced random demo I looked at said that it produces values between 0 and 1.

    so to get a number between 0 and 25, multiply the value by 25.

    to get a number between 5 and 15, multiply by 10 and add 5

    for 1 to 10, multiply by 9 and add 1.

    in general, multiply the value by (upper limit - lower limit) and add the lower limit.

  • RedBlackSpade

    WOW! the art is fantastic! You have obviously put a lot of work into this. I like the the old cartoon style, but with more vibrant colors.

  • I haven't tried what you are doing, but my guess is that the array download wont work from a website like that. You should try the Browser object, and then "Invoke download of string", and give it the array AsJSON...

  • I don't think he understood what you meant... it is one gun sprite with three frames, and then I think he has three instances - each showing a different frame. but I could be wrong...

  • Maham Imtiaz

    since there are 3 guns, it doesn't know which gun you are referring to when you try to set the angle.

    event 27 will have all the guns spawn a bullet, but events 28 to 30 still have all guns picked so it will probably use the first instance's angle.

    you need to add a "For each Firegun", then have each one spawn a bullet separately so you can check the animation frame and set the angle properly.

  • FacuLNF

    no, BBCode is only available in C3.

  • Spela

    multi touch is a lot more effort than single touch.

    in my experience, the best way to handle multi touch is to create a sprite called touchpoint and use that to track each touch. You create one on every touch start, update where it is every tick, and destroy it when that touch ends. that way you know exactly where the touch started, how long it has been in touch, and can control what it is allowed to do, what it should ignore, etc...

    I made a quick sample, where I copied parts of my standard multi touch routines, so it is doing slightly more than what you asked for, but might be useful to see how I like to do it.

    https://www.rieperts.com/games/forum/multitouch.capx

  • Try Construct 3

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

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

    When I transfer data back and forth to a database, I use a record delimiter and a field delimiter

    so, I would have something like:

    Bob|25|Male|Tall/Mary|24|Female|Short/Alex|48|Male|Medium

    then have a double loop, first to pull out a record (Bob|25|Male|Tall)

    and then a loop to pull out the fields...

  • Aguamoose

    ok, re-read your post, and I think I misunderstood you...

    I tried again, this time I set the background layer parallax to the same as the foreground, but still with scale rate set to 0.

    then I move the background image a scaled amount based on the layout zoom (starting with 50% at a layout scale of 100%)

    so, try thins one...

    https://www.rieperts.com/games/forum/zoom2.capx

  • Aguamoose

    the problem might be the background hitting the edge of layout. Turning on Unbounded scrolling will let it move freely, without it being limited by the boundaries. But then you have to make sure the 50% parallax layer extends out far enough that people can't see the edges...

    https://www.rieperts.com/games/forum/zoom.capx

AllanR's avatar

AllanR

Member since 21 Nov, 2013

Twitter
AllanR has 23 followers

Trophy Case

  • 11-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

20/44
How to earn trophies