Ben10000K's Forum Posts

  • Running around 60 fps using Chrome at full screen. Smooth enough. Climbing high wall was so difficult by the way.

    hmm, maybe just a me problem then

  • Could you upload the game online and let other test the game performance. I would love to see how the game performs in browser.

    Sure! Here you go. I found it runs at around 60 fps when windowed but when I maximize it, it goes to around 12 fps

    construct.net/en/free-online-games/adventures-jack-hammer-46288/play

  • This is mainly an issue in the web build for my game but it is also present when testing on andriod with html5 exports being the worst with a consistent 12 fps. On pc NW.js exports it runs over 100 fps but that is most likely due to having a decent pc. Any and all help is appreciated!

    I'm happy to provide a project file as well if needed. Below is some project and debug info to get started.

    Some project info:

    Display

    - Resolution: 427 x 240

    - Fullscreen Quality: High

    Debug

    - ~120 objects

    - 50% CPU usage at the very start but drops to around 25% after a few seconds

    - Draw Cells 20% CPU total time and self time (consistent)

    - Behavior Processing 20% CPU total time and self time (drops to 1-5% after a

    few seconds)

    Plugins

    - BetterOutline

    - Trail Renderer

    - Animate Text

    Other

    - 9 layers (mainly for parallax reasons)

    - Quite a few physics objects

    Tagged:

  • I don't think it's possible. If you are not using BBCode, you can make your own typewriter effect. It's not difficult, there are a few examples on this forum.

    I am using BBcode. Thank you for the help though.

  • Hello again! I think the title says it all. I want to know what the last letter typed by the typewriter is and then use that to determine whether a sound should be played. I only want letters to make sound, not spaces or punctuation. Thank you for your help!

  • Create two variables LastX and LastY.

    > Every 0.2 seconds
    
    ... LastX equals Mouse.x
    ... and LastY equals Mouse.y
    ........(Hide cursor)
    ... Else
    ........(Show cursor)
    
    ... Set LastX to Mouse.x
    ... Set LastY to Mouse.y
    

    I changed it up a little, but this worked really well! Thank you!

  • Hi I was wondering if there was a way to check if the user is moving the mouse in game!

    Thank you in advance for your support.

  • Not sure what you are trying to shortcut here, either you would use set text or typewriter text, both set text but one does a typewriter style.

    I was just wondering if I could trigger an event from changing the text.

  • So I have some dialogue and I want to change it without telling the text each time to start typewriting again. Is there any way to make a makeshift "on text changed" event?

    Example:

    On text Changed:

    Text: Typewriter text(Self.Text)

  • Hello!

    I was having some trouble with the typewriter in an RPG I'm working on.

    The typewriter types with the same delay between every character. But if there is BBCode in the string, ex. [color=#ff0000]text[/color]. It takes longer to type. Any suggestions?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It will be difficult to strip out bbcode tags from the text and still keep the formatting. I suggest you use the official typewriter, it can do this automatically.

    Then is there any way for the typewriter to type at a constant speed? And would it be possible to have different characters such as a period take longer to type(have more pause)

  • Hi! I would call this typewriter, but I have my own typing system in place.

    It types out the text with the bb code visible. For example, "Hello". Only when the other part of the bb code has been typed() it disappears. Any ideas around this?

  • rather than using AbsoluteX and Y, I would use just X and Y and specify the layer name

    Touch.X("UI") and Touch.Y("UI")

    This is if you want the object created on the UI layer. If you want the object created on a different layer then change the name of the layer in the brackets to get the correct coordinates for that layer.

    Thanks, this worked wonders!

  • Hello! I was having some difficulty with parallax on a game I was working on. I have an event that says "On any touch start | Create object: 'Tap' on layer 'UI' at Touch.AbsoluteX, Touch.AbsoluteY". This works fine until I resize the preview window, Now the sprite spawns at the position of the area that was touched * the scale of the preview window.

    Does anyone know how to fix this???

    Tagged:

  • Another option that just occurred to me MIGHT be to switch the character from Platform to Physics (have them both on the character and just toggle a boolean which switches between them) but you'll need to get the physics settings right, which will take experimenting.

    I have no idea if this would work or if it does, if it would be in the way you want, but it MAY be an option.

    Thanks for the help! I got it to work just the way I wanted it.