miguelromm's Forum Posts

  • Hello everyone.

    I'm developing a web app in Construct 3, but I'm having a BIG problem at the moment of loading the project on a server. On some devices it loads, on another doesn't or have to wait minutes and minutes...

    I'm a beginner and this is frustrating me, because is urgent. I'm probably making a serious mistake at the moment of managing the memory (size of images and another files...), so I need your help the soon as possible : /

    The project consists on a smartphone user interface, with some "fake apps", some funcionalities. The thing which are causing the serious problems are "S.A.R.A." and "Greg&Go" fake apps, I think.

    The big problem is that S.A.R.A. app must have 10 videos of 10 minutes each one (I have only 1 at this moment...) and the game Greg&Go must have 10 levels in the final version (now it has only 2...).

    Could it be a problem with the server or is it my mistake when managing the project?

    I let you the link of the project file here:

    drive.google.com/file/d/1E8Nur9fMACayUFrsReFz2QHVUAm2ahM5/view

    And the website on which the project is uploaded is:

    metamorfosischangecambio.com

    Thank you so much in advance! ;)

  • miguelromm

    You need to initialize ProUI before waiting 0.1s

    Yes, I've tried that, but it freezes too... :/

  • Hello, Aekiro! Your plugin is so nice, but I've a big problem. When I create the action to initialise it into an event, sometimes the scene freezes and I can't control anything.

    A snapshot of one of the scenes of my project:

    Thank you in advance! ;)

  • this gets a little closer... it doesn't use a swipe to change the player, but this tests gravity outside the circle and inside the circle.

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

    I just open your example right now and it's great. Is so close to my idea and a very good base to start with. Thank you very much, AllanR!

  • for the second mechanic - you say you want the ball to move at the speed of the swipe. but what happens if the swipe slows to a stop, or reverses direction? does the ball move if it is already on the top and the player swipes up again? what happens if the player tries to swipe with two fingers and one swipes down and the other swipes up? what's the point of moving the ball to the other side? you mentioned reversing gravity - is the ball supposed to be movable in any other way?

    Yes, you are right. I would like to make some testing with that, but probably it won't be a great idea, because there would appear a lot of problems.

    The concept is to implement the possibility to change the position and gravity of the first point character (the example that you did so nice. Thank you again) with a swipe and make it to appear in the inner zone the circular structure (it would be hollow). That's basically the idea, but I would like to probe this mechanic using separated platforms placed in a circular path. So, it would consist in a mixture of the 1 and 2 points of my drawing.

    Sorry if you don’t understand very well some of my explanations, I’m not a native english speaker. If you have doubts, I will try to resolve them the best way I can.

    Thank you!

  • give this a try...

    it uses the Platform behavior, sets the Platform angle of gravity to the center of the circle. Default controls are turned off so that we can lock the player's position by ignoring left and right movement. Jumping is a little tricky because it is really hard to have a player on a round object - you can't get the collision mask smooth enough for it to think it is always on the ground as it moves over the surface (or as the surface moves under it in this case). So, I use a second circle object that is a little bigger, and if the player is overlapping that when the up arrow is pressed (or a tap gesture) then do a jump.

    just for fun I added a button to toggle fixing the player in one spot. When not fixed, the player can run around the planet - gravity is constantly being set to the middle, so he wont fall off.

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

    EDIT: just added an obstacle to jump over, and a detector to tell us if we successfully jumped over the obstacle.

    Thank you, AllanR! I appreciate it a lot.

    I will take a look at your file and do some tests later. I hope I can solve both problems soon.

    About the second question, the example of brunopalermo seems really nice. But, is there a way to make the response of the gesture (the position and gravity changing of the sprite with a swipe) follows the exactly velocity and moverment of the finger (up/down) in real time? Is it possible to create this? Because is the idea I thought, but maybe is too hard to do, I don’t know...

    Thank you so much.

  • I'm not sure I understand the first one. But this file has one of the several ways of doing the second one.

    EDIT: Oh, f***! You're using C2, this forum confuses me sometimes, let me port it...

    EDIT 2: Here you go, a Construct 2 version.

    Hope this helps...

    Cheers!

    Thank you so much, brunopalermo! I will try it analyzing that file.

    The first scenario is basically an endless runner where the surface is a big circular platform which rotates counterclockwise and the character is “walking” clockwise above it using a radial/“planet-like” gravity.

    The idea is to create an animation rotating the sprite, because it only can jump and the advance of this character is an “illusion” (limited by an invisible zone where it’s locked) for the player.

    But the problem is how could I create that without bugs and control problems. Because I had numerous difficulties when I made a prototipe and tried to jump or when the character collisioned with different elements that appeared trough the travel.

    Maybe I’m not explaining or visualizing the idea correctly to create it in Construct in a proper way...

  • Hello, everyone.

    Which would be the best way to implement these two mechanics using Construct 2?

    1. Left-right movement of a sprite locked based on radial gravity

    The spherical structure would rotate counterclockwise and the green sprite would be limited to staying fixed in a region of its width approximately.

    This sprite would have its individual physical properties, such as its weight, and could jump when you press with your finger on a touch screen or a key, depending on the device.

    What would be the best way to implement this?

    How could I solve the problems with physics and response when jumping?

    Since some time ago I did tests and sometimes the green sprite response was good, but most of the times not... Due to the rotation of the circular platform and the sprite blocked in its limited region, or because I did not recognize the contact of the sprite of the green rectangle with that of the circular structure due to its different forms or produced by another reason that I don't know...

    2. Swipe gesture and gravity changing

    I want to make it by tracking the speed of the gesture depending on the finger movement (fast/abrupt or slow/smooth). It would be like a drag and drop only the Y-axis, but making the swipe on any region of the screen.

    Swipe up: Sprite above the rectangle.

    Swipe down: Sprite below the rectangle.

    And the idea is that the sprite would make a little jump on the start of the swipe and before it would go behind the rectangle (and the same but in reverse when swipping up).

    I hope you can help me with this doubts. Thank you in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes global variables will be fine for a settings menu.

    Alright! Thank you, .

  • Global variables are saved between layouts so if you move to one it will keep that data. The number of cards would be one variable and the difficulty could be a text i.e."easy" or a number variable. Saving the game is a very different thing, you can use local storage (see manual) to save variable data and load it again next time, and Ashley's tutorial is linked on there about how to make save games.

    Thank you! Sorry, I made a mistake in my previous message. I don't need no save the game locally.

    My idea is to save the choices picked going to a new layout and the app be able to remember the adjustments applied previously and show them if you go back to those settings layout.

  • Based on the lack of info the only way of answering this is to agree and say yes use variables. What do you mean by save your settings, you mean save the game after it is closed or save the choices picked going to a new layout? If the latter you use a global variable.

    Hello, . Yes, I imagined I should have to use variables, but I wasn't sure enough.

    I was referring save the choices picked going to a new layout, yes.

    How I could create that global variable (or various) to make it work?

    Thank you so much for your time!

  • Hi! I am working on a mobile board game and I have a few questions.

    I have two important variables of difficult defined by number of cards and number of people playing. How do I program the game to save my settings (the level of difficult I choose and the number of people playing)?

    And also, depending on that, how do I program that the game shuffle certain number of cards depending of difficult? Should I use variables, and if It is a yes, how? Does it exist another option?

    Thank you in advance.

  • , have you been able to do tests to update the file with the concept I explained on the post?

    Or someone else have another idea that could work the way I described?

    Thank you!

  • If you want to use touch gestures with a Construct2 project using LAN preview, have you tried activating the "Use Mouse Input" property

    for the touch object? Sometimes I forget to check to see if it is turned on. For testing more advanced touch gestures, I would recommend exporting the project and testing on a touch device to get better feedback as opposed to using LAN preview as I have found some issues when designing more complex touch inputs.

    As for the black bar that appears when testing is most likely caused by the "Fullscreen in Browser" setting in the Project Properties section. Try changing from "Letterbox Scale" to "Scale Outer" or "Scale Inner" as Letterbox scale is used for browser based games and doesn't work so well for mobile devices.

    Hopefully this helps out

    Thank you so much for your attention, Hampo1986! I will try those things 😌

  • One way to fix this is to use the "Scale Outer" option instead. This will scale full screen to the outer border of the project's window size.

    If that doesn't work then I have a fix that uses Cordova when exporting/testing on devices as I had the same problem a few months back.

    Hampo1986 , which would be that fix?

    I created a post some days ago, but I didn’t receive any answer and I think your fix maybe could help me.

    Thank you!