Skip to content

A bug in action, can't stop action at once. #17808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Dauch opened this issue May 12, 2017 · 2 comments
Closed

A bug in action, can't stop action at once. #17808

Dauch opened this issue May 12, 2017 · 2 comments
Assignees
Milestone

Comments

@Dauch
Copy link
Contributor

Dauch commented May 12, 2017

  • cocos2d-x version: 3.15
  • devices test on: win7
  • developing environments
    • NDK version:
    • Xcode version:
    • VS version:
    • browser type and version:

Steps to Reproduce:
u84 mv789yia 6e x zq_0

    local actionTag = 111
    local seq = transition.sequence({
        cc.DelayTime:create(0),
        cc.CallFunc:create(function()
            self:stopActionByTag(actionTag)
            print("aaa")
        end),
    })
    local action = cc.RepeatForever:create(seq)
    action:setTag(actionTag)
    transition.execute(self, action)

output

aaa
aaa

this aaa will be execute twice, but we need only once.

@minggo minggo added this to the 3.16 milestone May 22, 2017
@minggo minggo self-assigned this May 22, 2017
@minggo
Copy link
Contributor

minggo commented May 22, 2017

Yep, it is an issue, fixed in #17849

@minggo minggo closed this as completed May 22, 2017
@Dauch
Copy link
Contributor Author

Dauch commented May 22, 2017

Thanks @minggo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants