move to angel

Get help using Construct 2

Post » Sat May 19, 2012 8:21 pm

hmm first see capx:
http://dl.dropbox.com/u/67034121/forum/move%20to%20angel.capx
how can i make enemy to move to the place object with straight line (bullet behavior will work i think ) but the problem i want it to move to place 1 then 2 then 3 after it comes on 3 it stop 1min then destroy.



*if this could done with 1 variable in (place object) will be better ^^



here after i get helped (the result)
http://dl.dropbox.com/u/67034121/forum/Move%20at%20angle%20full%20fixed.capx
thanks for reading ^^
by salemzsangerous2012-05-19 21:28:41
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Sat May 19, 2012 8:41 pm

I think this is what you are after, I did it by giving the enemy a variable called 'destination'.

Here you go.

As far as I can see, it would be difficult and overly complex to do this with only the place variables. I hope this works for you ;)sqiddster2012-05-19 20:42:17
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat May 19, 2012 8:54 pm

@sqiddster thanks, can you make it stop when it overlap with the latest place in this example its 3 , so if made this in another level with 9 places it will move all then stop...


B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Sat May 19, 2012 9:03 pm

Hmm.
for each level you will have to have a variable 'last_number' or something - then add a condition stopping it from moving when its destination is past that.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat May 19, 2012 9:26 pm

@sqiddster thanks again ^^ , simple question the variable is local variable right?? if like this i think i made it but with global variable.

also i made respawn ,also made the click disable when its moving here is the link if someone need it :
http://dl.dropbox.com/u/67034121/forum/Move%20at%20angle%20full%20fixed.capxzsangerous2012-05-19 21:27:52
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Sat May 19, 2012 10:20 pm

You shouldn't use local variable, yes it should be a global variable.
Glad you got it fixed, have fun ;)
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400


Return to How do I....?

Who is online

Users browsing this forum: Justin1967, Nifl and 26 guests