Resslx's Forum Posts

  • I'm building a series of small games where players explore a map and find physical tags leading to different ones. Here's a more detailed explanation, if you're wondering.

    I want to push players to 'final game' only after they've played through all the others. I need a simple variable which increases incrementally each time players complete a game which coul be loaded at the end of each. If it's reached a certain value it would trigger a different set of events based on that value. This is all mobile-based, but my understanding is Local Storage saves different keys for each game and I couldn't use it to push data between them for this case.

    This seems simple enough it could be accomplished multiple ways, but I'm having difficulty finding any actual ones. Do I need to learn Javascript or get help leveraging it somehow?

  • I'm creating a simple game which rotates the players' view based on which direction they rotate their phone.

    There's a demo here (just tap the three skulls to start).

    I'm using the accelerometer alpha input (0-360) to move two identical images across the layout horizontally to create the loop and pan effect:

    Unfortunately, it seems a small (but significant) port of Android phones give very touchy alpha values.

    Subscribe to Construct videos now

    The Xperia 'twitches' even in a resting state, and it's not the only device which does this.

    I'm wondering how to approach 'averaging' these values without sacrificing too much of the response time to pan the screen. Although, I'm willing to sacrifice this quite a bit, since my game is more of a giant cutscene than an actual 'game'. How would you go about reducing this sensitively programmatically within Construct?

    The most generic way I can think of would be to grab as many alpha values as possible over say 0.5 seconds, average them, and then tween the layout to the most recent 'average value'. Is this practical? I'm wondering if there's a better solution, or if my idea can actually work and not impact the performance greatly.

  • Thank you! I will try and work out a way to use an average of the accelerator values to smooth out the effect. I just needed to know the issue wasn't exclusive to the Sony phone.

  • Sorry, I forgot to mention you need to tap the three floating skulls first.

  • I'm trying to make a game using mobile accelerator input to pan objects inside the layout.

    I have a very simple test setup over here. (only works on mobile)

    Does the scene pan intuitively if you stand up, hold the top of your phone tilted slightly away from you (found that works best), and then rotate your body in a circle?

    I've tested it on a number of devices, but I tried it on a SHARP AQUOS and it seems to 'seizure' rapidly around the expected value. It's the only phone I've noticed do this, so I'm wondering if it is actually just the device or on my end.

  • Thank you for clearing this up! You're correct, I added an SSL certificate to my testing domain and it's working normally now. My web host is great, so it wasn't difficult to implement at all.

  • Problem Description

    I'm trying to get cameras working in Chrome on Android, but the request to access them just isn't popping up.

    I'm testing using the Example: Webcam template built into Construct. I have a version online over here.

    I've tested it with these devices so far:

    HTC M8

    Android: 6.0

    Chrome: 48

    Galaxy Nexus

    Android 4.4.2

    Chrome: 48

    Nexus 7

    Android: 4.2.1

    Chrome: 48

    I am aware there was an issue regarding this recently that was supposedly fixed in r219. Someone else brought it up in December on here.

    User Media: work around a spec change in Chrome 47 that broke camera/microphone access

    This issue is specific to Chrome. I had a really old version of it on my Nexus 7 (31) and the user request did still appear. After it was updated, it stopped appearing. Requests work fine through the latest version of Firefox on my HTC M8.

    Attach a Capx

    Example: webcam

    Description of Capx

    Unchanged version of the basic webcam tutorial template built into Construct.

    Steps to Reproduce Bug

    • Preview in Chrome 48+ on Android
    • Click 'Get Webcam' button

    Observed Result

    The status text on the page immediately changes to "Declined!" after you hit the "Get Webcam" button.

    Expected Result

    A camera request should appear from the Chrome browser.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (NO)
    • Internet Explorer: (N/A)

    Operating System and Service Pack

    Android 6.0

    Construct 2 Version ID

    Release r221 (64-bit)

  • It just repeats the levels, correct? I did NOT expect the head to start moving towards me once it got low. I'd make the area with the head more open. I was just walking up and down the same hallway repeatedly, it would feel more exciting if I could strafe and actually try to hit the boss more dynamically. I think you could make it much faster paced with a little smoother aiming (walking would alter my aiming oddly at times if felt).

    Keep at it! There's lots of way too good stuff on the forums. Finding something you're really interested in making is the best way to get better.

  • R0J0hound, that's amazing. Thank you!

    I spent six hours yesterday trying to force a laughably simpler version. I was honestly intimidated by arrays.

    I broke down what you made to help force myself learn how they work better. I only have a couple specific questions regarding it, if you wouldn't mind helping me understand it better:

    1. How are the lines allowed to exist if they are also being destroyed every tick?

    2. Does the System loop to generate lines that goes through each corner in the array automatically run every time the size of the array is changed?

    (Updated capx)

    Lastly, I reviewed the Cloning the Classics: Pacman Tutorial. I don't think grid-based movement would be ideal for what I'm actually intending to accomplish. Most of the Witness puzzles occur in a grid-like space, but many are more organic as well.

    I didn't find anything searching the forums for motion/tight/corridors. Would I be more successful trying to implement basic physics and experimenting with friction and/or torque values (so it can roll around corners)? I did this in my laughably simple test, but am still getting the hang of the behavior. It seemed to seizure around somewhat.

  • I'm not quite able to get your idea to work Gumball. The objects would eventually overlap intersections that haven't been drawn yet. I'm still trying to think of a way to tell them when to stop scaling and let a new intersection take over while still letting it know which direction to come from (since you can go through intersections multiple ways).

  • I'm interested in recreating a puzzle from The Witness, a fantastic indie game that just came out recently.

    Subscribe to Construct videos now

    .

    Here's an example of what the basic puzzles look like:

    I'm struggling with how to make a line that is drawn and follows a path dynamically as the player moves their mouse or finger (touch).

    The line needs to erase itself when moved backwards and cannot go through or overlap itself.

    I've tried using the Canvas plugin, but there's no way to make the line move backwards I can think of. It still draws a nice line I can pin to a different object that is forced to stay within the bounds of various solids, but I can't make it rewind really.

    I tested using custom movement and moving a point towards the cursor/touch every tick, but it ends up being very jittery and gets stuck on corners between squares. I tried pathing as well, but it doesn't seem suited for this really.

    I suspect there's a more straight-forward way to accomplish this specific visual aspect. How would anyone else approach this?

  • I'm attempting to embed and eventually animate a small image onto my page, but I'm uncertain why the background of the iframe in my embed is showing up black.

    Here's my embed code:

    <iframe src="http://www.mikerezl.com/navigation/index.html" name="Navigation" width="400px" height="400px" frameborder="0" scrolling="no" ALLOWTRANSPARENCY="true"><p>Your browser does not support iframes.</p> ></iframe>[/code:1mi9qpt0]
    
    I've set the Clear Background option to Yes in the project settings and am using a sprite with the Destination In Blend Mode atop another sprite to create the shape I would like. 
    
    There's still a black background showing up inside my iframe on the page: [url=http://www.mikerezl.com/]http://www.mikerezl.com/[/url]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm looking for a way to trigger Tasker events from within Construct 2 running on Android.

    Tasker can monitor a wide array of system inputs, states, and events, but I haven't find any plugins or options within Construct that can trigger a Tasker profile.

    This type of functionality would give Construct an incredible amount of agency over the Android system and access to other devices directly.

    For my own game, I'm creating a room containing multiple Android devices. I intend to make them communicate based on the event in the game on a primary device, which with trigger other events around the room across the displays.

  • Thank you, this method is awesome!

  • I've been making daily updates to my project and testing it every few days on my target environment, Chrome in Android. Suddenly, I've started getting a plain black screen after the page loads.

    I haven't added any plugins or made any dramatic changes to my project in past few days. I've move some animations around, but my project specifically starts on a "loading" page before any of my main objects are loaded.

    I'm also able to load the page in the stock Android browser, but it looks and performs terrible as usual. I've tried clearing my entire system cache, reinstalling the browser, and different devices to no avail.

    I'm uncertain what else I can do to test it or deduce the issue, other than removing objects and effects one by one.

    Here's a link to my capx.