brent_hamel's Recent Forum Activity

  • Hey there everyone, as the title states, I have a picking question...

    I've got multiple instances of my object, and they all have a private variable, this variable is a different value for each instance, now, when two instances are next to each other, I need to make them average out their values with each other, and this needs to work for as many as their might be side by side.

    if I have 3 instances (with their values showing) arranged like so:

    7, 6, 2...

    I need to have them all check with each other and become:

    5, 5, 5...

    any ideas?

    Overlap at offset detects the side by side instances, but after that I can't seem to find a good way to select them, the instances are also created and placed randomly, so UID's are no good...

    Thanks in advance.

    Brent

  • I managed to tweak the formula you offered and achieved the exact results I wanted, thank you for your help. What I wound up using was X = OriginalX + (ScrollX * ScrollRate (in this case 50%) * offset (as my object appeared to the left of where they needed to be but scrolled properly) so thank you again for the assistance!!

    here's how it turned out :)

    dl.dropbox.com/u/4075855/Tile-Based%20Lighting%20Test/index.html

  • I'm afraid I'm not quite sure what you mean in the formula "scroll_OriginalX" where is this being referenced from?

  • I'll give that a try, thanks for the reply!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Quick question, I've got my tiles all laid out, but when I tell the system to autotile them at start of layout, it locks up, is this a bug? Am I doing it in the wrong place? Or have C2 updates broken the behaviour for now?

  • Hey guys, quick question...

    I've created a tile-based lighting system (similar to minecraft/terraria) but I'm also using parallax scrolling to create depth, because the light sources are in different layers, their "reflected light" appears on layers with different scroll rates, and therefore becomes detached visually from the light source. Does anyone know a way I can compensate for this?

    Thanks in advance

    Brent

  • I'm afraid this isn't quite what I'm after... I'm looking for User Defined control. Something like this...

    Defining Control

    • user selects the option to customize controls
    • user selects the control "move left"
    • the system then waits for user input
    • the system returns a value for the first key the user presses
    • the system saves that value to the variable "moveLeft"
    • the system then saves that all to webstorage

    In Game Control

    • user presses a key
    • the system returns a value for the key pressed
    • the system compares that value to all the control variable values
    • if key pressed and the value of "moveLeft" are equal, then proceed...

    I've tried various ways of using both the Keyboard and Keycode plugins but I haven't got it working yet...

  • Sorry to bump guys, I'm still stuck and not making any headway at all, there's clearly something obvious I'm missing :S

  • Too hard for them to control perhaps?

  • Amen to that brother!

  • Not sure if anyone has played with this, or even cares for that matter lol, but I tried loading a project from my dropbox in the Nintendo 3DS Internet Browser and it did load the project, though the 3DS touch screen doesn't seem to register as a touch OR a mouse click... If someone was interested in exploring the potentially usability of Construct 2 with the N3DS browser, it could prove to be another interesting platform to include in browser game design.

  • My code is like this:

    System | On Start of Layout: AJAX - Request "http://api.ipinfodb.com/v3/ip-city/?key=(my api key)" (tag "Location")

    AJAX | On "Location" Progress : Text | Set text to "Working"

    AJAX | On "Location" Error : Text | Set text to "Error"

    AJAX | On "Location" Completed: Text | Set text to "Completed"

    this always returns "Error"

    according to the manual if I add "Access-Control-Allow-Origin: *" then it is supposed to allow cross-domain requests, but I can't seem to make it work, it just keeps returning "Error" in my Text field...

brent_hamel's avatar

brent_hamel

Member since 31 Dec, 2009

None one is following brent_hamel yet!

Trophy Case

  • 14-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

18/44
How to earn trophies