QuestionGuy's Forum Posts

  • I've never used these before (Viewport and lerp), where can I read more about them? Could you also explain what you do with lerp? Thank you.

  • Now how can I make the hud lock where it is? Bceause after I turned on that option the game indeed zoomed where I wanted it to zoom but the hud is at the wrong spot.

    Do I use a Pin behavior? Note that if I want to make the grid bigger I will add the option to zoom in and out with the mouse, and the hud should still remain at its intended location like in the example images above

    Smallest Grid I want should look like this (width and height to 3)

    The layer is scaled to 3

    Largest Grid I want should look like this (width to 50 and height to 44)

    Scale is 1

    I made these inside debug mode

  • Thank you for reminding me about the Fullscreen, although this wasnt the issue.

    I will provide an image to show what I want to happen the moment the layout begins, basically it zooms in on the grid.

    The camera object is calculated to move at the center of the grid

    This is what I tried to do but the game apparently zooms at the center of the layer and not where the camera object is. It does have scroll to behavior, and I dont know how to make the game zoom at the grid

  • Let's say I made a camera object that moves with arrow keys. Depending on some values I will create a box that consists of tiles at the top left corner of the screen, and depending on how small it is, I zoom the layer more. I tried to first have the camera object loaded off screen and after some calculations have its position set, then change the layer scale but the game doesnt zoom in where I want it to zoom. How can I fix this?

    cdn.discordapp.com/attachments/960278860161765436/1516747489837973636/test.c3p

    Tagged:

  • note, the generic controller worked when I set gamepad to 0 and the app on 1

  • I wanna add controller support to a game, however I have a big problem.

    The controller I am using is a generic usb controller, not an official XBOX, Playstation whatever controller.

    Dpad is not registered, and the Buttons on the right are messed up, for example, button 1 (where Y would be), acts like Button A. Only button 2 works the way I want (button B).

    Is there a way I can fix this? I heard c3 doesnt have great controller support. And mapping keyboard keys to my controller makes the controller support basically useless. I did try using an app on the phone, and the controlls worked fine there at least

    Tagged:

  • thank you very much, although I got a bit confused and dont really understand what I did wrong.

    As for the last method with the K variable. If I want several variables to be shown in millions do I need to make several "K" variables too? One for each?

  • Hello, I want to make big numbers appear with a symbol next to them instead of full, like 1oooooo is 1m and 1005000 is 1.005m but for some reason the zeropad part (after the dot) may appear like this

    I basically make the text show the number divided by big number then zeropad number % big number / big number with 3 less zeros, 3

    can someone explain whats wrong and what I can do to fix this? I made it go up to septillions, each one has the exact same logic but with 3 extra zeros on each

    Tagged:

  • adjusting line height doesn't do anyhing and adding a space at the start can misalign the text, also it will be very tedious to do since I already plenty of text and it will definitely take a very long time figuring out which texts need a space and then manually changing it

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • pixel arial 11 and yes its in Dafont

  • I used a custom font for my game but some letters dont get properly viewed and I have no clue how I can fix this. Does anyone know how I can fix this? It is a problem with several fonts I try and I can't just look up every possible font that could not have this issue

    Tagged:

  • I really want to make text that may vary in length and I can't just create a sprite at the end for each individual possible text length.

    Let's say I want to make a shop and instead of saying

    "Buy for 500 coins?"

    It's

    "Buy for 500 🪙?"

    The coin being a sprite I created

    Tagged:

  • I know you can shake the screen with shake scroll in any object but I would really like to know if you can shake the screen and keep certain objects stable. For example if you want to make a mobile game and add some sort of dpad you wouldnt want the dpad to shake alongside the screen right?

    I know one could make every object shake individually but it is not worth at all

    Tagged:

  • I gave each slot a slotID2 and 3 to set in editor to avoid using setting a second ID depending on the bag you are looking at. Also the Debug shows the array has its proper values in x 1 2 and 3. I hate to see that itemName is not even set to a string but rather 3 in slot 1 and -1 in every other slot

    I will provide an updated version of itemtest and a screenshot of itemArrat as well

    cdn.discordapp.com/attachments/960278860161765436/1343343332260315166/itemtest.c3p

  • I tried using Strings like you said and it didnt seem to make things better

    for example I set the first value of the array to sword to test things out and gave 2 other names to the 2nd and 3rd slot. Then instead of frames I switched to animations, so the game will fetch the strings from the array and play the animation with the same name as the value, if value is 0 it will be "empty"

    so I used debug and I noticed that the itemName values didnt get anything inside, at least it didnt cause a mess with bags 2 and 3 this time. I do not understand what I did wrong, also yes I did give each slot an individual ID in the editor, and depending on the bag they will have a "second ID" that matches the bag number (bag 1 is items to 8, bag 2 is items 9 to 15 etc)

    I should mention at the start of layout I clear the array to 0 and set the values like this: Set Value at 0 "sword"