CGSpot's Recent Forum Activity

  • > If I enable Unbounded Scrolling for the layout, an empty screen becomes visible at the bottom.

    Screen shake doesn't work when there is nowhere to scroll. You need to:

    • enable the Unbounded Scrolling
    • use a separate Camera sprite with ScrollTo behavior (its size doesn't matter)
    • move tha camera to player position
    • limit the camera movement to layout bounds

    Example:

    https://www.dropbox.com/scl/fi/ins0stjp4a58gxdoryh9v/BoundedScroll-with-shake.c3p?rlkey=x3tud71wkscppzivo8bugzlga&st=xd3ead60&dl=0

    Thank you very much

  • i dont understand

    the videos you showed are showing you spawn missiles for the first vid

    the second video wont load for me

    did you mix up the links when you posted your earlier forum on missile spawn issue?

    that missile issue, i got it fixed...

    this is about screen shake effect when the missiles blasting on the ground....

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I want to keep the screen shake function in my game. My layout size is 3840x1080, and the viewport is 1920x1080.

    I’ve added the ScrollTo behavior to the Hero.

    I couldn’t use the Hero's ScrollTo behavior for screen shake. If I enable Unbounded Scrolling for the layout, an empty screen becomes visible at the bottom.

    So, I decided to use a sprite with the size 1920x1080 and give it the ScrollTo behavior. But I’m getting some issues:

    1. The screen doesn’t shake when the Hero is at the very left edge of the game page, but it works when he is further to the right.

    Video: webmshare.com/play/QGnG1

    2. Since both the Hero and the screen shake sprite have the ScrollTo behavior, the camera doesn't follow the Hero smoothly—he ends up moving out of the screen.

    Video: webmshare.com/play/xV9V3

    Can anyone please help me resolve this?

  • If you want to spawn the missiles at the player's current location, then use player coordinates instead of fixed values.

    For example:

    > Create missile at (Player.x, Player.y-200)
    Create missile at (Player.x-300, Player.y-200)
    Create missile at (Player.x+300, Player.y-200)
    

    Or, you can spawn them relatively to the viewport:

    > Create missile at (ViewportMidX("layer"), ViewportTop("layer")-80)
    

    Thanks, you are a lifesaver...

  • The image below shows my events:

    The hero character has the Scroll To behavior, and my layout is larger than the viewport. I’m spawning 3 missiles from above the viewport and using the Bullet behavior to make them fall to the ground.

    Issues:

    1. If the spawn layer has 100% parallax, the missiles won’t spawn above the player if the player has moved beyond the viewport. They simply spawn in the viewport, and the player can’t even see them.

    Video: webmshare.com/play/PJaJe

    2. If the spawn layer has 0% parallax, the missiles correctly spawn above the player, but they follow the player as he moves. The same thing happens to the blast animation that is spawned when the missile is destroyed.

    Video: webmshare.com/play/5JoJB

  • It's better to use a variable - increase the variable and set the text to that variable.

    Without a variable you'll need to convert the text to number and back.

    Textbox set text to str(int(self.text)*1.5)

    or use float() expression instead of int() if you need decimals.

    Thank you

  • In Construct 3, I have a text box containing a number, which is 40, and it's associated with a panel.

    Every time the player clicks the panel, the value in the text box should increase by 50%.

    How do I do this?

    EX:

    If the text box contains 40, and I click the panel, the value should increase by 50%, which makes it 60.

    If it's 60, it should increase to 90.

    For 90, it should increase to 135.

  • Thank you very much guys, I got it working...

    Again thanks for the help....

  • > ...

    > Please help me make this.

    >

    >

    >

    > I have attached the project's Construct 3 file.

    > dropbox.com/scl/fi/0y2y4u8hemqhwwoolhwen/Game_File.c3p

    I don't know if we still need this solution, I made it, but only now I was able to post it.

    https://fex.net/s/ra82bd0

    Subscribe to Construct videos now

    Thank you very much...

  • If I touch anywhere on the screen first and then try to use the shooting controls, I can’t use them, the gray crosshair simply doesn’t move.

    Results, when I use the movement controls on the left, the shooting controls on the right become unusable. But if I use the shooting controls first and then the movement controls, both work fine.

    How can I fix this?

  • Got it... dop2000 helped to solve this...

  • I want to move the red crosshair along a path (green line) when the player touches and moves the control in the bottom right (gray crosshair).

    It should be a controlled movement—both the red and gray crosshairs shouldn't move away from their respective paths.

    Please help me make this.

    I have attached the project's Construct 3 file.

    dropbox.com/scl/fi/0y2y4u8hemqhwwoolhwen/Game_File.c3p

CGSpot's avatar

CGSpot

Member since 16 Dec, 2024

None one is following CGSpot yet!

Connect with CGSpot

Trophy Case

  • RTFM Read the fabulous manual
  • Email Verified

Progress

2/44
How to earn trophies