dankhan's Forum Posts

  • Thank you guys, in the future I'll actually use names for the layers as suggested.

  • It's ok, I'll go ahead and make the changes to my event sheets tonight.

  • My issue is that I don't want to have to go through all the events and make the changes. It'd be a nightmare.

  • Try Construct 3

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

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

    I made a game with 4 layers (0 - 3) and now I want to create another layer above layer 0. The problem is the existing layers are assigned IDs, i.e layer 0 is 0 layer 1 is 1 etc. Now if I create a new layer above layer 0, it's assigned the ID number 1 and replaces the the previous layer's ID number which is then moved up and assigned ID number 2. This messes things up as the game is set to using previously set layer IDs. Does that make sense?

    Is there a way to manually assign IDs to layers?

    Thanks,

    Dan

  • Cool, I'll do that tomorrow. I have a playlist full of C2 Tutorials. Do let me know if I can help you by testing your game. I'm a noob at this but I want to get involved with the community - it's the best way to learn.

    Cool thanks!

  • I want to share some youtube links with you, but profile limitations won't allow it. Not much I can do to help you for now, I'm sorry Dankhan

    Thanks for that and no worries. I'm following you on Twitter (Playdor). Maybe you can tweet me the youtube links there.

  • No, I just didn't know exactly if it was a P&CA like Monkey Island or a P&CA like...Another I can't remember the name of.

    In that case what you can do is move your player towards the mouse's X position, and once it reaches the end of the screen, have a sensor trigger the change of layout. Does that make sense?

    Cool, how would I achieve that? Also I want the player to stop if it hits a wall or something.

  • Could you give us more information?

    How would he move left and right? Is this like a platformer/Point and Click adventure hybrid?

    I think a good idea would be to get input from mouse, and once clicked on an object (like a move left/right sprite) it would take you to another layout.

    How I imagined it is the player would move towards the direction of the click but in a linear manner, just left and right. There probably would be a grid with a list of actions to choose from (like in games such as Monkey Island) at the bottom of the screen or something.

    So in your idea would there be no animated player?

  • I want to make a simple point & click adventure game in C2. Basically the player will only move left and right, not in/out or up/down. There would be NO moving into the distance etc. There would be inventory with icons and actions such as look, open, use, talk etc.

    I need a bit of help on getting started. I'm usually ok when I get started but figuring out how to set something like this up is what I need help with.

    I appreciate any help.

    Thanks,

    Dan

  • Hi Ashley, yes it's always worked. It worked with my game previously as well. And now after the C2 update it works but as I said I need to increase the orientation values otherwise the movement is too sensitive. By orientation sensor you do mean the tilt sensor on my Moto G phone right? If so that definitely works.

  • Thanks Volkiller730, sounds like it's pretty complicated to do haha!

    Ashley, I haven't actually measured it but before the value was set to 4 and -4 and now by multiplying those values by 10 gives the desired result for me. Not sure if multiplying by 10 would work for higher or lower values though.

  • dankhan - r191 is out now, could you give it a try and see if the issue is resolved?

    Hey thanks Ashley, it seems to be working now. However, I now need to increase the value of orientation before tilt is detected. Before I had it set to like:

    Beta Orientation > 4 - Do action

    Beta Orientation < -4 - Do action

    Now I had to increase it by 10 times for the same effect otherwise it's too sensitive.

    Beta Orientation > 40 - Do action

    Beta Orientation <-40 - Do action

    I'm ok with increasing this value but I wonder if the result would be different for different phones. Maybe on some phones the old value '>4' is still appropriate.

    Thanks,

    Dan

  • Thanks Ashley, will test it on r191, when will that be out?

    Thanks Volkiller730, how would I do that?

  • If such a simple .capx works differently in some cases it would suggest it's a bug to me - can you file a bug report with that .capx following all the guidelines, in particular the devices you've tested and which are reversed?

    Thanks Ashley, I've submitted the bug report.

    Thanks,

    Dan

  • Problem Description

    The accelerometer works in opposite way, tilting phone left moves object right, etc. This wasn't a problem before.

    Attach a Capx

    Attached

    Description of Capx

    It's a simple capx with just two events. The orientation events are used to move sprite left and right by tilting the phone.

    Steps to Reproduce Bug

    • Step 1 - Export to crosswalk android
    • Step 2 - Build with Intel XDK, full screen mode and landscape mode.
    • Step 3 - Test on phone by tilting device left and right to move sprite left or right.

    Observed Result

    When tilting device left, sprite moves right and vice versa. This didn't happen when I used C2 last year for my project. I had this tested on some other devices and out of three, one of them worked correctly. My device is Motorola Moto G.

    Expected Result

    When tilting device left, sprite should move left and vice versa.

    Affected Browsers

      Not a browser issue.

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    Construct 2 stable release 190