Why U No Move !

Get help using Construct 2

Post » Mon Oct 22, 2012 11:33 pm

Hey guys ! I've hit the wall , I think it's a bug but ... I post it here
The problem is that my blue object doesn't move and the Xdestination and YDestination doesn't change ! ( 2nd and 3rd line of the text )

Here is the capx !

http://dl.dropbox.com/u/89532891/Others/Capx-Quest.capx

Thanks !
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Tue Oct 23, 2012 2:10 am

Well as your text object shows..
the angle() expression that is used for setting enemyhitbox.playerangle returns a value inbetween -180 and 180..
(-180 left, -90 up, 0 right, 90 down, and 180 facing left again)

but then in the sub-events for the actual movement, you were checking for values from 0 to 360 instead of -180 to 180

so just need to change those values

alternatively you could use anglediff() .. which automatically works out any inconsistent angle values.
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Tue Oct 23, 2012 12:10 pm

Weepee !! thank you :D !!
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589


Return to How do I....?

Who is online

Users browsing this forum: fredriksthlm and 28 guests