monster problem and going to the next lay-out

Get help using Construct 2

Post » Sun Aug 19, 2012 10:29 am

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.
http://www.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

https://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 :)darkrayver2012-08-19 10:42:21
B
8
S
3
G
2
Posts: 23
Reputation: 2,066

Post » Mon Aug 20, 2012 2:56 am

I figure it out about the first bug my only problem now is the lay-out
B
8
S
3
G
2
Posts: 23
Reputation: 2,066

Post » Mon Aug 20, 2012 3:12 am

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.
Kyatric2012-08-20 03:14:49
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Mon Aug 20, 2012 6:19 am

thank you :)
B
8
S
3
G
2
Posts: 23
Reputation: 2,066

Post » Mon Aug 20, 2012 6:52 am

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 :)darkrayver2012-08-20 06:52:57
B
8
S
3
G
2
Posts: 23
Reputation: 2,066

Post » Mon Aug 20, 2012 6:59 am

[QUOTE=Kyatric]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.[/QUOTE]

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.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests