hertles's Recent Forum Activity

  • I'm trying but still did not manage to do it. I just wanted to know if is possible. (but a "how to do" would be great anyways)

    I'm trying to load the variable "life" in my other game when i hit the button load, I don't know if I'm doing it wrong or is just not possible but It always missing the file.

    edit: It works in construct, in the local host. It just dont work in exported version.

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can do a great experiment.

    You can post this "с3p" file.

    And in half a year open it again, and if this code doesn't seem bad to you, then you haven't made any progress in half a year.

    I do that a lot when I open old projects.

    Happy New Year!

    To be real, I already think is bad hahaha. But I still don't know how to make it better

  • I had such a hard time to discover this that I decided to make a post the teach whoever needs it.

    In the forum, you may find some posts saying that you could create an object and put the scroll behaviour, make it invisible and then moving it.

    There's just one problem with this solution, when the object "camera" goes out of screen center, it take a moment to the camera start moving again since camera must return to the center of the screen to start moving. I found a much easier and elegant solution to this.(And you dont need the scroll behaviour)

    There is some actions called "set scrollX" and "set scroll Y" that sets the camera scroll coordinates. So you could create two global variables called "scrollY_var" and "scrollX_var" and then suppose that you want to move the camera to the right and left. You could do this:

    [On "d" key down] ""or any other trigger""

    -> Add 10 to scrollX_var ""change the number to change camera speed""

    -> Set scrollX to ScrollX_var

    [On "a" key down]

    -> Subtract 10 from scrollX_var

    -> Set scrollX to ScrollX_var

    Now you need to limit the "scrollX" value to not get over your layout and having delays in moving the camera. To do this, create this event:

    (To do this go to system -> compare variable)

    [If scrollX_var > layoutWidth - your layout width divided by 2]

    -> Set scrollX_var to scrollx (I don't know why to set to this, but it just works)

    [If scrollX_var < your layout width divided by 2]

    -> Set scrollX_var to scrollx

    And you can do the same thing for the de Y axis

  • Thaks man! but i forgot to say something. I'm using construct 2. So I don't have the tween behaviour :/

  • This is how I did it. It works, but is too abrupt. I tried to use fade behaviour but i don't seem to work all the way. I saw other topics about this but I sincerely dont understand. Please help?

  • Thanks man!I had a look but the hotspot in all frames are alright

  • No one?

  • Here it is how is in the game itself:

    Subscribe to Construct videos now

    The problem that is ******* me off is that the sword flash animation in the third attack is misplaced (slow down the video to see it right)

    I made the animation using 3 functions

    function 1: ready the weapon animation (when clicked the icon)

    function 2: first sword swing (at space key pressed)

    function 3: second sword swing (at space key pressed again)

    and than in the third swing (space key again) comes by calling function 2 again (I suspect that this is the cause of the problem, cus the third attack dont use function 1 but I still can't figure out how to fix it)

    The flash sprite animation and sword animation are separated because I wanted to use the same moveset to other weapons. Here is how I did it

    On Function 1 :

    On function 2 :

    On function 3 :

    The image point location:

    Tried to change it but it just turn the animation messier

    Any idea why is this happening? should I had made the animation different? I'm not the best at construct, and some things may be a little amateur.

  • I know, but I got some plugins in construct 2 so its a little hard to do some things

    all over again

  • I making a game in construct 2 due to it's 100 events limit (free version). May I sell this game if I get construct 3 license?

  • Can I just make a huge layout (10000x8000) and a tiny windows size (800x400)? if not, how can I do it?

  • Sorry man, the last link works, It's just I did not extracted the files.

hertles's avatar

hertles

Member since 10 Jun, 2023

None one is following hertles yet!

Trophy Case

  • 1-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

4/44
How to earn trophies