monster problem and going to the next lay-out

0 favourites
  • 6 posts
From the Asset Store
Helping streamers give their viewers more excitement.
  • Hello everyone I'm getting some bugs in my first platform RPG game

    First is the monster is not walking and doing some weird movement.

    scirra.com/tutorials/253/how-to-make-a-platform-game/page-7

    I read all the instructions in that tutorial but its still not working

    second is when my character go to the next lay-out he go to the very end of the lay-out not in the beginning of lay-out

    dl.dropbox.com/u/98958302/RPG.capx

    and also if you could help me how to make health for my main char and for the monsters thank you :)

  • I figure it out about the first bug my only problem now is the lay-out

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Life for player and monsters : Beginner's guide to construct 2 - Page 6 (don't hesitate to read over the whole tutorial again).

    Edit: You can also want to implement a fancy lifebar or a more regular health/bar implementation (as well as many other mechanics).

    For the position problem: that's what it is POSITION.

    Your main_car/collision_char objects are global, meaning they don't get destroyed between a layout to another.

    But it also means that the properties of the objects are kept.

    So "On start of layout" you need to "collision_char: Set position to" wherever in the "beginning of your layout you want it.

    Example capx

    Rather than having to set fixed coordinates each layout, you might want to make an invisible "spawn_char" object and "On start of layout" set "collision_char"'s position to "spawn_char"'s position.

    Also, nice looking art.

  • thank you :)

  • what if i'm going back to the previous lay-out

    example:

    I have 3 lay-outs(i'm in the first lay-out)

    if i'm going to the second lay-out then the position of my main_char is in the beginning of the first lay-out.

    what if i'm in the 3rd lay-out and I want to go the 2nd lay-out,

    my main_char will go the beginning of the lay-out not in the end of it

    thank in advance :)

  • For the position problem: that's what it is POSITION.

    Your main_car/collision_char objects are global, meaning they don't get destroyed between a layout to another.

    But it also means that the properties of the objects are kept.

    So "On start of layout" you need to "collision_char: Set position to" wherever in the layout you want it.

    You also have to store somewhere what part of the layout you want the character to appear to (left or right).

    Once again, an invisible object would do the trick, and in "On start of layout", you would pick the according "Spawn_char", left/start or right/end.

    Describe the system you exactly want to have all at once, don't go for steps because the previous implementations might become obsolete.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)