Dr.Hasan's Forum Posts

  • I think it's the right time for you to explore and play with variables.

    I'll give you a bit of hint, and will let you try out. Besides, I don't know what type of game are you making. But anyway:

    You want the next box to Start moving (after the previous box stops) provided that a Key was pressed in between the tween. Correct? For this, you can merge my solution with that of Kyatric.

    You'll have two variables (Boolean): Tweening, and keyPressed (default: False)

    That keyPressed variable will set true whenever a Key is pressed and it will remember (stay as true) that the key was pressed while the box was moving despite the actual key is released.

    Then, "On Tween Finished" you should also check with another condition (is keyPressed?), if yes, then it should call the Function to start the next box Tween. (or you can do as I did, select whichever you want to move, by Picking).

    Important: keyPressed should be set as False as soon as the box starts its Tween.

  • Yep.

    Kyatric solution should work for you.

    If you don't want sequential, and want to move upon a different event, then you can instead have a global check like this:

  • Yeah. You're right. It should. But apparently the way Tween behavior is built in C3, it starts in the next tick. Which is why it doesn't sense it 'playing' in that same 'tick' of events of Start of Layout.

    With anything else, the 0 seconds would work. Try opacity for example. It would work.

    A good work around is to let the timer start 'after' the tween actually has began playing, for example:

  • I can see the mistake. You need to have the 'isPlaying' condition as a deeper sub-event to allow that Wait 1 second to really spend 1 second before moving on to its sub-event. See screenshot.

    At the moment, there are three sub-events under Start of Layout, and it checks for all of the three instantly - Hence, a wait 1 second in the middle doesn't affect the sequence or timing as there is technically no action after Wait 1 second.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks Chadori! I understand what you mean. I guess I'll just wait for Christmas then :P

    Yes I read your response.. I've been noticing this weird bug as well. The replies disappear for no reason. Happening since 3 days now on this forum. I don't know if the moderators are aware.

  • You're doing an amazing work Chadori. Hats off to your skills! and Congratulations on completing your undergraduate degree!

    I have one request, please read it to the end, trust me I understand why you would always keep it as a FULL bundle, but hear me out:

    A lot of C2/C3 dev, like myself, cannot afford $100. Seriously. Just cant. There is no way. And yet we really need only one or two of your awesome plugins. My win-win suggestion to you is:

    1 DAY OFFER:

    $10 PER PLUGIN !!!!!!!! Limited Time 24 HOURS OFFER

    C'mon, think about it. Isn't it win-win? I assure you, you'll get 100s of purchases that day. And from then onwards, you may continue with $100. For ever.

    PLEEEEEEEEEASE ! Thank you so much for reading.

  • oosyrag Thanks for the reply. I understand better now. But just to conclude and confirm:

    1) The tutorial of Multiplayer Lobby at Scirra (by Blackhornet) would only work if the Host player (i.e. developer of the game) maintains an-always running version of the game online as a host server.

    2) The £15 Signalling server is not an-always running server? This purchase will not solve my problem then. Would it?

    Please confirm. Thanks again!

  • I have gone through the forum and tutorials. I am still confused about one thing.

    What I want is to let players join a common Lobby where they see all other players. Then they can select to invite a player for a 1-on-1 game. (I can handle the 1-on-1 part very well).

    I know Blackhornet posted a tutorial on this: construct.net/en/tutorials/tic-tac-toe-part-multiplayer-639 But the problem is, the lobby is created by a player host, and when the host disconnects, all the players are kicked (obviously). Which also defies the whole concept of a Lobby.

    Question is: Do I need to buy a separate Signalling Server (such as: scirra.com/store/game-making-tools/multiplayer-signalling-server-161) and expect to have a Lobby (Host) running from the server-end instead of 'players becoming the hosts'. Would that work?

    OR. Can it be done without buying the signalling server and using the free Scirra signalling server as well? - if so, How? there are no tutorials for a non-player-host based Lobby.

    Please guide. Thank you.

  • Hi.. Even with the R158 (Beta), the navigation panel does not hide from a fullscreen Android build.

    Here are my observations:

    1) Before R158, the problem was that it would show up for the Input text box, i.e. when the native keyboard pops-up. When the keyboard hides, the navigation panel didn't use to hide. We'd need to pull the status bar and release it to hide everything.

    2) With the R157, as I notice, when the Google Play signs in, the Navigation Panel shows up (not even transparent - it's opaque) and it's persistent. Meaning, I cannot even hide it manually. Nor, does it hide with Browser fullscreen. I even tried Fullscreen, letterbox, then scale outer, etc. Doesn't work.

    This is very annoying, since the game needs to be Fullscreen, and it overlaps with some portion of the game.

    Anyone else faced this?

    Any solution?

    How do I report it officially, since this is clearly a bug.

    Thanks,

    Hasan

  • I'm experiencing the same!

    Also, if Ashley hopefully sees this comment, I got no answer to this problem on the forum:

    When the Keyboard hides, the Navigation buttons do not hide automatically. I'd need to pull the notification and let go to make my game fullscreen again. Making it 'Fullscreen' (browser) or changing layout doesn't help either. Any fix to this?

  • Yes. object.physics.Velocity

    That's the speed, negative means going towards left.

  • Hi,

    So I have an Input Text field, when the user touches (on Android), the Keyboard shows up, but so does the Notification bar (and on most mobiles, the Navigation buttons too).

    Now, the problem is, when the user touches elsewhere, as Input Text goes unfocused and the Keyboard minimizes, the Notification bar does not hide automatically. It then never hides even when I change the layout. (Unless I pull it and let it go manually). It's really annoying because I want the game to be fullscreen. Is there a way I can force Fullscreen for Android?

    I tried the Browser object, but apparently, it doesn't work on Android.

    Any way around this? Please help! Thanks.

    Tagged:

  • If it's exactly the opposite way, it's because it may be facing 'left' when you made the Sprite. Note: All sprites have default direction facing right.

    One way to fix would be to Edit the Sprite, Flip the image horizontally.

    --OR--

    In the Event Sheet, instead of pointing towards an object. Set Angle and write:

    angle(sprite.X, sprite.Y, mouse.X, mouse.Y) + 180

    That should solve it.

  • You do not have permission to view this post

  • Hi all,

    Firstly, I was so used to "WebStorage" in C2, it was just perfect! Now, shifting to C3, I can no longer use it (can I?), so I'm stuck with this frustrating LocalStorage where I cannot even compare two keys together?

    I have made two keys "name" and "team" as the user writes their name and selects the team. This information is stored correctly in each key.

    Now, I have a button sprite, On Touched, I want to check if "name is not empty" and "team is not empty", before proceeding to the next layout.

    How do I check? In WebStorage, I would have done: Compare two values: "if(Webstorage.Localstorage("name") != "") and (Webstorage.Localstorage("team") != "")

    How can I replicate the same here?

    Note: I want to 'check' both keys together ONLY upon Touch button.

    Tagged: