following monster ^^

Get help using Construct 2

Post » Tue Apr 10, 2012 6:45 pm

hi again ^^

today i have a question i don't know if i could give you capx, because i don't have it yet i just wanna know is this idea easy or not and i can do it or not ^^

the idea is that i have a player he has a way to move! and there is a point if the player overlapped it a monster will follow the player but this all are easy but how can i make the monster follow the road that the player should move on it?
see a picture and maybe the idea will be easier
player = yellow, monster = red, road = brown , overlapped point = cyan.


if you could do it , tell me how and thanks ill try to do xcaps for these if needed , ( im busy in making sprites that why ) ...

thanks for reading,helping,listening to me ^^
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Post » Wed Apr 11, 2012 3:00 am

heh heh. This isn't exactly what you describe, but it is kind of fun to play with!

The monster has a "feeler" pinned to it. If the feeler isn't over the road the monster can't move. The monster always turns towards the player, and when the player trips the trigger (overlapped point) the the monster starts following the player--as long as its feeler is overlapping the road!

MonsterTag.capx

EDIT 1: Right now the monster is set to move forward 5 pixels every tick, but if you dial that down to just 1 pixel, the monster actually follows the road pretty closely, so it is almost exactly what you were asking about.

EDIT 2: You would make the monster's feeler invisible in the finished game, of course.kittiewan2012-04-11 19:43:32
B
29
S
11
G
12
Posts: 281
Reputation: 11,868

Post » Wed Apr 11, 2012 11:23 am

@kittiewan
hmm i don't know but the file is not working in construct2.

B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Post » Wed Apr 11, 2012 11:47 am

@zsangerous: yes the file is working in construct2.
Maybe the file wasn't up when you tried, or maybe you need the r85 version to use it.

If it has a problem, it should raise a dialog on start, with informations about what the problem is.
Read those informations, and eventualy post them here so we can figure out what's going wrong.
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,998
Reputation: 57,791

Post » Wed Apr 11, 2012 12:22 pm

@Kyatric
is there another version after c85 beta??

because the file not working with no error message o.o
the file looks like this :

is there something to do??
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Post » Wed Apr 11, 2012 1:40 pm

I was able to download and run it. Sometimes when capx files download they are treated as compressed (zipped) folders. If that happens you would extract them to an uncompressed folder and then run.

Here are some pictures to show what I did. First the layout. Note that the feeler object has a pin behavior. The player object has a scroll to and an 8-way behavior set to 4 directions only. The monster has a boolean instance variable Following.



And the events:



B
29
S
11
G
12
Posts: 281
Reputation: 11,868

Post » Wed Apr 11, 2012 1:55 pm

[QUOTE=zsangerous] @Kyatric
is there another version after c85 beta??

because the file not working with no error message o.o
the file looks like this :

is there something to do??[/QUOTE]

Apparently you renamed the file to a ".capx-" extension.
Remove the final "-", it should work.
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,998
Reputation: 57,791

Post » Wed Apr 11, 2012 2:50 pm

i really don't know if this from my computer or what but really i didn't rename it also i tried to change it and nathing happen see the picture from chrome
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Post » Wed Apr 11, 2012 3:31 pm

Well you have an option somewhere that adds "-" to this file you downloaded.
And you don't know how to modify the name of a file in your operating system, once it's stored on the harddrive ?

I'm sorry, but there is a minimal knowledge in computer that is to be known before even considering making games. This will help you a lot.
Unfortunately, I can't give you a link, I don't know a good beginner tutorial about computers and files managements in english. Have a look on google "how to rename files in " and the name of your OS.
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,998
Reputation: 57,791

Post » Wed Apr 11, 2012 6:15 pm

@Kyatric
i don't know any option that add "-" to any file o.o because all the other capx works fine and im using chrome.
i really don't know sometimes when i download capx it comes like the one in the picture named with "cap" with out "x" and it will not work too.. seems ill try to find a way to change these things and finish it.
by the way thanks for the help and informations ^^
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Next

Return to How do I....?

Who is online

Users browsing this forum: CavalierBubble, Evanetot and 27 guests