Hello!
Im using cocos2d-x with Xcode from https://github.com/cocos2d/cocos2d-x, problem is spine files are very old without events...
I notice here https://github.com/EsotericSoftware/spi ... /src/spine are updated files but they are not in cocos2d-x.
I tryed to make it work without success, can you help me make project work with latest files, thanks.
1. sayfa (Toplam 1 sayfa)
janko
9 years ago
- janko
- Mesajlar: 9
Nate
Use the cocos2d-x from github. Copy the source into your project.
9 years ago
-
Nate - Mesajlar: 12208
janko
I copy files from src folder to cocos2d-x/extensions/spine and get about 30 errors:
/Users/minimac/Desktop/cocos2d-x/extensions/spine/CCSkeleton.h:52:37: Unknown type name 'SkeletonData'; did you mean 'cocos2d::extension::SkeletonData'?
/Users/minimac/Desktop/cocos2d-x/extensions/spine/CCSkeleton.h:74:2: Unknown type name 'Bone'
/Users/minimac/Desktop/cocos2d-x/extensions/spine/CCSkeletonAnimation.h:44:110: Unknown type name 'EventType'
"unknown type" like SkeletonData can be found seems like something is different with namespace, did i miss something?
/Users/minimac/Desktop/cocos2d-x/extensions/spine/CCSkeleton.h:52:37: Unknown type name 'SkeletonData'; did you mean 'cocos2d::extension::SkeletonData'?
/Users/minimac/Desktop/cocos2d-x/extensions/spine/CCSkeleton.h:74:2: Unknown type name 'Bone'
/Users/minimac/Desktop/cocos2d-x/extensions/spine/CCSkeletonAnimation.h:44:110: Unknown type name 'EventType'
"unknown type" like SkeletonData can be found seems like something is different with namespace, did i miss something?
9 years ago
- janko
- Mesajlar: 9
Nate
Have you tried using the example that comes with spine-cocos2dx?
9 years ago
-
Nate - Mesajlar: 12208
janko
I copy ExampleLayer.cpp and ExampleLayer.h and get same errors.
9 years ago
- janko
- Mesajlar: 9
Nate
spine-cocos2dx has an example project you can open for iOS or Windows. You can open the project, see it works, modify it for your needs if you like, or copy its configuration to a different project.
9 years ago
-
Nate - Mesajlar: 12208
eq2k
Hi, I think janko is expecting he can copy and replace the spine files included in cocos2dx which won't work and he will get the errors he's getting. Especially if he is trying to use cocos2dx alpha where even more additional steps are required.
9 years ago
- eq2k
- Mesajlar: 95
Mark topic unread
• 1. sayfa (Toplam 1 sayfa)
Dön Runtimes
- Tüm zamanlar UTC