Versanthus's Recent Forum Activity

  • I found out the problem here. Apparently, something on my layout was creating the problem. I tested on a new layout, no problem whatsoever.

  • I don't think you would need the camera at all. You can enable/disable ScrollTo in events. So you could add ScrollTo to both players next use if PlayerHuman is visible add the events ScrollTo PlayerFox disabled and ScrollTo PlayerHuman enabled. Else ScrollTo PlayerFox enabled and ScrollTo PlayerHuman disabled.

    I tried that before. It doesn't work. The characters can still walk out of the screen.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey, it's me again.

    I tried to create a camera that follows my character, the camera sprite follows but it doesn't scroll the camera to the left/right when the character is walking to the left/right.

    What I do:

    I create a new sprite object, give it scroll-to behavior and make it invisible (visible for now).

    Then I code the object to follows my sprite objects. My character can transform between 2 sprite objects.

    The code:

    PlayerHuman, is visible | Camera, Set position to (PlayerHuman.X, Camera.Y)

    System, Else | Camera, Set position to (PlayerFox.X, Camera.Y)

    Files:

    drive.google.com/open ... lo1Q29MNkU

    (The camera function should start on Level 1 - Forest.

    Tutorial Level should be a fixed camera, so there is no issue with that.)

  • Update: It's fixed.

  • May I know what kind of tutorial is that ?

    I have a low connection so i cant view any video or download for now

    Something like this:

    System Every Tick | Overlapper Set position to Player

    Overlapper is overlapping Crate | Crate Set Platform maximum speed to 30

    Player Y > Crate.Y |

    Mouse Right button is down (for pull) |

    Player X < Crate.X | Crate simulating pressing Right

    Keyboard (Right) is down |

    ^vice versa

  • No problem. Artwork is pretty btw. Good luck on your project!

    Thank you. The artworks are done by my friends.

  • I apologize, renamed and uploaded the wrong folder. I updated it with the change.

    I tested it in the tutorial level and it was working fine. If you have issues don't hesitate.

    It was actually Level 1 Forest the one with issues.

    But thank you, I understand my issues now. I managed to fix it so camera won't go all the way down. Now it's only about coding the camera to move smoothly. Thank you.

  • Should be ok now Versanthus you can download the files

    Your problem was maybe due to the fact that you had two sprites for the camera

    camera and camera2 but for both the code was different.

    Much thank you and sorry... I checked the file. It was the same file as the one I posted. Nothing's changed. =(

    I sort of understand, at the same time confused.

  • And how are you following them?

    System->scroll to object?

    Are you trying to follow them both at the same time?

    ~Sol

    I don't quite get you but:

    -The character transform from Object A to Object B

    -Object A player input is disabled, Object B player input is enabled

    -Object A become invisible, Object B become visible

    -Object A's collision is turned off, Object B's collision is turned on (The collision was causing a lot of glitches)

    The camera is suppose to act like a standard platform's scroll to. But enabling/disabling Scroll-To function does nothing to fix it, at least the way I programmed it.

  • Hey,

    I tried following tutorials of push/pull mechanics for my platform game. It works fine until I changed the collision of the crate. It doesn't work anymore.

    My game involve character switching forms. Each form is its own sprite object.

    Game File:

    mediafire.com

  • How are you following the character? System -> scroll to object?

    Are the different versions of your character the same object just with different animation? Or are you suing two different sprites for each form?

    ~Sol

    2 different sprite objects.

  • Versanthus, I did a small correction in your events, I added a bookmark in the section

    https://drive.google.com/file/d/0B27TG57JCwl_XzdEUWZNNEN2UXM/view

    I think you often duplicate items as new entities instead of instances of the same object which might be causing problems.

    Hope it can help you.

    Oh thank you but I couldn't access the G.Drive. I have sent a request.

Versanthus's avatar

Versanthus

Member since 18 Jun, 2016

None one is following Versanthus yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies