janko

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.
janko
  • Mesajlar: 9

Nate

Use the cocos2d-x from github. Copy the source into your project.
Kullanıcı avatarı
Nate

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?
janko
  • Mesajlar: 9

Nate

Have you tried using the example that comes with spine-cocos2dx?
Kullanıcı avatarı
Nate

Nate
  • Mesajlar: 12208

janko

I copy ExampleLayer.cpp and ExampleLayer.h and get same errors.
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.
Kullanıcı avatarı
Nate

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.
eq2k
  • Mesajlar: 95


Dön Runtimes