Undercover.M's Recent Forum Activity

  • Well... Sorry for double post:

    If you want to try the issue, you can use theese three games:

    construct.net/en/free-online-games/dreams-reality-1142/play

    construct.net/en/free-online-games/super-mario-demo-769/play

    or

    construct.net/en/free-online-games/resume-run-3824/play

    or you can try to create a new "platform project" it is the same.

    Press simultaneously left and right keys and release, very often the controls stuck, and you need to press the opposite direction to resolve definetely.

    I don't know what to do...

  • I am making a platform game, but I have find what seems to me an error in the program itself.

    Let me explain:

    after various tests I've come to the conclusion that Construct itself does not seem to consider the possibility of pressing both direction keys simultaneously (obviously i refer to right and left keys)

    When this happens and the keys are released at same time, the program often continues to read the pressure of one of the two directions, and it results in the movement of the sprite without the orders giving by the player.

    This is not something wrong with my programming, since I have also encountered it externally, and the only way to fix it by exiting construct is to... well, restart the computer.

    Has it happened to others? How can I solve this problem?

    Thanks in advance for the answers.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ...And three...

    Well, my project go on slooooowly, 'cause the infamous camera movement that still a work in progress.

    Now... i made it some adjustment but it doesen't works and i need some advice.

    I'll try to use the "Move_to" behaviour.

    I create a global variable for the camera object, i call it "panoramica" and its value is "base"

    When you press the "up" button for 1.5 sec, the variable change in "upper" and the camera move itself vertically to show the level area over the player.

    If you release the button, the camera return in position and the variable return to "base"

    So, this is the code:

    But... it works only the first time you press the key, if you release the button the camera return at start position but if you retry to press the up key it moves only for 30 pixel.

    I don't know what went wrong.

    Any help?

  • Anyone? Well...

    Ok, I'll try some experiment on my engine here but i really don't know if i'm doing right or not (don't mind if i insist) .

    My principal Sprite is named "candy_sprite" so...

    First i create a object "camera" with a ScrollTo behaviour. This Obj is controlled by this two statements:

    (only if faced right)

    If Idle anim. is playing

    If is faced right:

    lerp(camera_X,candy_sprite_X+100,0.06)

    If running anim. is playing

    If is faced right:

    lerp(camera_X,candy_sprite_X+120,0.08)

    This to explain, i had choose different values to obtain two camera position in two different situations.

    In the first one you are in idle, and the sprite is positioned in the half left portion of the screen (more spacing view in the half right portion)

    In the second one you are running, and for the lerp effect the camera is centered over the sprite, you are in the center of the screen then.

    This is not bad, i mean, i make this way because is better the transition of the camera when you are stopped and faced right and decide to turn left, or viceversa.

    But this is it, i can't figure out how to play with this possibilities, for example, in future i want to made it possible to press up and down keys to change the perspective of the level.

    But my "scripting aknowledgement" is not very effective, for example, i don't know how to stop the camera reached one specific point and i'll try but, i simply... can't figure out how to do.

    Also... all this is ok for the linear movement in the X axis, but not for Y, i mean... if the camera is centered, and is positioned near the head, or over the head of your sprite when you are falling result in this:

    So... when you fall, you can't really see what is bottom, and you can't react in time if there was some dangering zone or whatever.

    I admit that i haven't really figured out how a video game camera works, or works in construct but...

    Well, i hope i have explained better now. If someone want to explain me or want to give some hint, is really appreciated.

  • Hi everyone! My first post here and i'm not really good in english; i try to make a solid platform engine for my project. Well, my big issue with this is that i'm more skilled with graphic than the programming part but i always try.

    I making a platform with big sprites, and i want to use in it a smooth camera movement, (similar to a "sonic" 'cause my sprite is a runner too).

    Also, i want to give at the player the possibility to scroll up and down the camera to see what is above and under the sprite.

    The Y movement is another problem: well i said my character is a runner, this means high velocity, and if it fall down from a platform i need also to see where she land.

    Using lerp i'm not able to do anything of this, i mean... i made some results with the X movement, but not good as a playable platform like that i need.

    I want to ask what solution can be the best to resolve all this requests, and how to do: like i said i'm not really "pro" in the program part, but i like to learn. If someone can help me it will really appreciated, thanks.

    Sorry for my english, i'll try my best XD

Undercover.M's avatar

Undercover.M

Member since 28 Apr, 2018

None one is following Undercover.M yet!

Trophy Case

  • 6-Year Club
  • Email Verified

Progress

7/44
How to earn trophies