Bug shot left

Get help using Construct 2

Post » Fri Aug 26, 2016 5:06 pm

Hi guys,

I write code for touch command :

Sprite 1 ( character) on touched firebotton:

Sub 1 : if sprite 1 is mirrored : spawn object layer 1 points 1 / set animation "fire" / set angle 180

Sub 2 : if sprite 1 is not mirrored : spawn object layer 1 points 1 / set animation "fire" / set angle 0

Result is where i fire right ok, when i fire left ok, but when i fire left and immediately right bullet i was fire left go right and other spawn right angle.. :shock:
B
10
Posts: 53
Reputation: 460

Post » Sat Aug 27, 2016 12:33 am

Can we see a capx please?
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
50
S
24
G
30
Posts: 519
Reputation: 19,563

Post » Sat Aug 27, 2016 8:17 am

B
10
Posts: 53
Reputation: 460

Post » Sat Aug 27, 2016 12:46 pm

Looks fine to me, couldn't break it..
B
46
S
16
G
73
Posts: 2,084
Reputation: 43,677

Post » Sat Aug 27, 2016 1:04 pm

I don't see how that is possible either, however, there is one small detail I'd suggest. Instead of checking Is mirrored then is NOT mirrored, use an Else. The Is NOT mirror is redundant and can get you into trouble if that pattern is followed later for other things. It's better to check something, and if you need to do something else if that isn't true, to use Else.
ImageImageImage
B
71
S
21
G
230
Posts: 3,687
Reputation: 128,845

Post » Sat Aug 27, 2016 2:22 pm

wait post a video so all can see this "bug"

https://www.dropbox.com/s/808ohppz3x56v ... x.pdf?dl=0
B
10
Posts: 53
Reputation: 460


Return to How do I....?

Who is online

Users browsing this forum: mindragon73 and 21 guests