ݺߣ

ݺߣShare a Scribd company logo
CCSendMessages
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
page1
//
CCCallFunc *callFunc1 = nil;
callFunc1 = [CCCallFunc actionWithTarget:self
                                selector:@selector(animationStart)];

// 2
CCCallFuncND *callFunc2 = nil;
[CCCallFuncND actionWithTarget:self
                      selector:@selector(changeSpriteAttribute:)
                          data:iconImage];

//
CCSequence *seq = [CCSequence actions:callFunc1,
                [CCDelayTime actionWithDuration:1.0],
                callFunc2,
                nil];

[iconImage runAction:seq];
page2



- (void) changeSpriteAttribute:(void *)data {

    CCSprite *sprite = (CCSprite *)data;

    sprite.scale   = 2.0;
    sprite.opacity = 128;
}
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
//
CCSendMessages *message1 = nil;
message1 = [CCSendMessages actionWithTarget:self];
[[message1 addMessage] animationStart];
// 2
CCSendMessages *message2 = nil;
message2 = [CCSendMessages actionWithTarget:iconImage];
[(CCSprite *)[message2 addMessage] setOpacity:128];
[(CCSprite *)[message2 addMessage] setScale:2.0];
CCSendMessages introduction
//
CCSendMessages *message1 = nil;
message1 = [CCSendMessages actionWithTarget:self];
[[message1 addMessage] animationStart];

// 2
CCSendMessages *message2 = nil;
message2 = [CCSendMessages
actionWithTarget:iconImage];
[(CCSprite *)[message2 addMessage] setOpacity:128];
[(CCSprite *)[message2 addMessage] setScale:2.0];

//
CCSequence *seq = nil;[CCSequence actions:
        message1,
        [CCDelayTime actionWithDuration:1.0],
        message2,
        nil];

[iconImage runAction:seq];
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
CCSendMessages introduction
Ad

Recommended

MFC Map1
MFC Map1
Razvan Raducanu, PhD
?
Calculadora
Calculadora
CBTa 120
?
28. distance formulatemplatetouchpad
28. distance formulatemplatetouchpad
Media4math
?
29. midpoint formulatemplatetouchpad
29. midpoint formulatemplatetouchpad
Media4math
?
Method overriding in java
Method overriding in java
One97 Communications Limited
?
OOXX
OOXX
Weihong Lee
?
10CSL67 CG LAB PROGRAM 7
10CSL67 CG LAB PROGRAM 7
Vanishree Arun
?
The Ring programming language version 1.5.4 book - Part 55 of 185
The Ring programming language version 1.5.4 book - Part 55 of 185
Mahmoud Samir Fayed
?
iOS app hacks all_map
iOS app hacks all_map
Keisuke Hata
?
Cocos2d Performance Tips
Cocos2d Performance Tips
Keisuke Hata
?
apportable meeting
apportable meeting
Keisuke Hata
?
Cocos2d platforms
Cocos2d platforms
Keisuke Hata
?
TiPhotobook_en
TiPhotobook_en
Keisuke Hata
?
Photobook
Photobook
Keisuke Hata
?
iOS app hacks
iOS app hacks
Keisuke Hata
?
Gcs2014 0225 cocos2d-xjsb
Gcs2014 0225 cocos2d-xjsb
Keisuke Hata
?
Advanced cocos2d
Advanced cocos2d
Keisuke Hata
?
ԻǾ奢ץ100Ҵɤʱˤä
ԻǾ奢ץ100Ҵɤʱˤä
Katsuaki Sato
?
cocos2d for i PhoneνB
cocos2d for i PhoneνB
Jun-ichi Shinde
?
303 TANSTAAFL: Using Open Source iPhone UI Code
303 TANSTAAFL: Using Open Source iPhone UI Code
jonmarimba
?
ߧѧߧڧ ֧ߧ_Popups, alerts and windows
ߧѧߧڧ ֧ߧ_Popups, alerts and windows
GeeksLab Odessa
?
Shootting Game
Shootting Game
Michael Pan
?
cocos2d HungryMasterΌgװ
cocos2d HungryMasterΌgװ
Yuichi Higuchi
?
dzDz2ʹä`ɤ
dzDz2ʹä`ɤ
Yuichi Higuchi
?
Sbaw091117
Sbaw091117
Atsushi Tadokoro
?
Keeping Track of Moving Things: MapKit and CoreLocation in Depth
Keeping Track of Moving Things: MapKit and CoreLocation in Depth
Geoffrey Goetz
?
I os 03
I os 03
ż
?
#JavaFX.forReal()
#JavaFX.forReal()
Thierry Wasylczenko
?
Three20
Three20
Gump Law
?
14709302.ppt
14709302.ppt
SunilChaluvaiah
?

More Related Content

Viewers also liked (10)

iOS app hacks all_map
iOS app hacks all_map
Keisuke Hata
?
Cocos2d Performance Tips
Cocos2d Performance Tips
Keisuke Hata
?
apportable meeting
apportable meeting
Keisuke Hata
?
Cocos2d platforms
Cocos2d platforms
Keisuke Hata
?
TiPhotobook_en
TiPhotobook_en
Keisuke Hata
?
Photobook
Photobook
Keisuke Hata
?
iOS app hacks
iOS app hacks
Keisuke Hata
?
Gcs2014 0225 cocos2d-xjsb
Gcs2014 0225 cocos2d-xjsb
Keisuke Hata
?
Advanced cocos2d
Advanced cocos2d
Keisuke Hata
?
ԻǾ奢ץ100Ҵɤʱˤä
ԻǾ奢ץ100Ҵɤʱˤä
Katsuaki Sato
?

Similar to CCSendMessages introduction (17)

cocos2d for i PhoneνB
cocos2d for i PhoneνB
Jun-ichi Shinde
?
303 TANSTAAFL: Using Open Source iPhone UI Code
303 TANSTAAFL: Using Open Source iPhone UI Code
jonmarimba
?
ߧѧߧڧ ֧ߧ_Popups, alerts and windows
ߧѧߧڧ ֧ߧ_Popups, alerts and windows
GeeksLab Odessa
?
Shootting Game
Shootting Game
Michael Pan
?
cocos2d HungryMasterΌgװ
cocos2d HungryMasterΌgװ
Yuichi Higuchi
?
dzDz2ʹä`ɤ
dzDz2ʹä`ɤ
Yuichi Higuchi
?
Sbaw091117
Sbaw091117
Atsushi Tadokoro
?
Keeping Track of Moving Things: MapKit and CoreLocation in Depth
Keeping Track of Moving Things: MapKit and CoreLocation in Depth
Geoffrey Goetz
?
I os 03
I os 03
ż
?
#JavaFX.forReal()
#JavaFX.forReal()
Thierry Wasylczenko
?
Three20
Three20
Gump Law
?
14709302.ppt
14709302.ppt
SunilChaluvaiah
?
Cocos2dg 1.0.0rc
Cocos2dg 1.0.0rc
Yuichi Higuchi
?
ާҧڧݧߧ ѧ٧ѧҧܧ iOS. 4 ݧ֧ܧڧ. ٧ާاߧ ֧ݧ֧ߧ
ާҧڧݧߧ ѧ٧ѧҧܧ iOS. 4 ݧ֧ܧڧ. ٧ާاߧ ֧ݧ֧ߧ
ݧ֧ ѧѧ
?
MFC Map2
MFC Map2
Razvan Raducanu, PhD
?
Game development with Cocos2d
Game development with Cocos2d
Vinsol
?
Dip iit workshop
Dip iit workshop
Electronics and Communication Engineering, Institute of Road and Transport Technology
?
Ad

More from Keisuke Hata (13)

CCResourceAsyncLoader
CCResourceAsyncLoader
Keisuke Hata
?
Impact beginngers guide_1.19
Impact beginngers guide_1.19
Keisuke Hata
?
Introduction titanium
Introduction titanium
Keisuke Hata
?
Hello cocos2d ios
Hello cocos2d ios
Keisuke Hata
?
Hello cocos2d ios
Hello cocos2d ios
Keisuke Hata
?
Google wave2010
Google wave2010
Keisuke Hata
?
How To Build Last Fm For I Phone
How To Build Last Fm For I Phone
Keisuke Hata
?
Mercurial&OnenoteServer
Mercurial&OnenoteServer
Keisuke Hata
?
Wiipen
Wiipen
Keisuke Hata
?
Are You Enjoy Ruby 1 Day
Are You Enjoy Ruby 1 Day
Keisuke Hata
?
Ad

Recently uploaded (20)

Salesforce Summer '25 Release Frenchgathering.pptx.pdf
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
?
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
?
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
?
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
?
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
?
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
?
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
?
Quantum AI: Where Impossible Becomes Probable
Quantum AI: Where Impossible Becomes Probable
Saikat Basu
?
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
?
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
?
"Scaling in space and time with Temporal", Andriy Lupa.pdf
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
?
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
?
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
?
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
?
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
?
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
?
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
?
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
?
Connecting Data and Intelligence: The Role of FME in Machine Learning
Connecting Data and Intelligence: The Role of FME in Machine Learning
Safe Software
?
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
?
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
?
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
?
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
?
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
?
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
?
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
?
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
?
Quantum AI: Where Impossible Becomes Probable
Quantum AI: Where Impossible Becomes Probable
Saikat Basu
?
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
?
"Scaling in space and time with Temporal", Andriy Lupa.pdf
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
?
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
?
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
?
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
?
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
?
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
?
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
?
Connecting Data and Intelligence: The Role of FME in Machine Learning
Connecting Data and Intelligence: The Role of FME in Machine Learning
Safe Software
?
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
?

CCSendMessages introduction

  • 7. page1 // CCCallFunc *callFunc1 = nil; callFunc1 = [CCCallFunc actionWithTarget:self selector:@selector(animationStart)]; // 2 CCCallFuncND *callFunc2 = nil; [CCCallFuncND actionWithTarget:self selector:@selector(changeSpriteAttribute:) data:iconImage]; // CCSequence *seq = [CCSequence actions:callFunc1, [CCDelayTime actionWithDuration:1.0], callFunc2, nil]; [iconImage runAction:seq];
  • 8. page2 - (void) changeSpriteAttribute:(void *)data { CCSprite *sprite = (CCSprite *)data; sprite.scale = 2.0; sprite.opacity = 128; }
  • 18. // CCSendMessages *message1 = nil; message1 = [CCSendMessages actionWithTarget:self]; [[message1 addMessage] animationStart];
  • 19. // 2 CCSendMessages *message2 = nil; message2 = [CCSendMessages actionWithTarget:iconImage]; [(CCSprite *)[message2 addMessage] setOpacity:128]; [(CCSprite *)[message2 addMessage] setScale:2.0];
  • 21. // CCSendMessages *message1 = nil; message1 = [CCSendMessages actionWithTarget:self]; [[message1 addMessage] animationStart]; // 2 CCSendMessages *message2 = nil; message2 = [CCSendMessages actionWithTarget:iconImage]; [(CCSprite *)[message2 addMessage] setOpacity:128]; [(CCSprite *)[message2 addMessage] setScale:2.0]; // CCSequence *seq = nil;[CCSequence actions: message1, [CCDelayTime actionWithDuration:1.0], message2, nil]; [iconImage runAction:seq];

Editor's Notes