Giter Site home page Giter Site logo

ailovereel's People

Contributors

poisonousjohn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

victorhenriquez

ailovereel's Issues

problem adding to scene

hello,
this project looks great, althoug i have one problem,
i created image in 32x96 px called "ramzor.png"
and used you library as this (in the init function):

    UIImage *img = [UIImage imageNamed:@"ramzor.png"];

    CCTexture2D* texture = [[CCTexture2D alloc] initWithCGImage:img.CGImage resolutionType:kCCResolutionUnknown];


    AiloveReel *reelLocal = [AiloveReel reelWithTexture: texture polygonsCount: 19 symbolSize:CGSizeMake(32, 32) symbolsCount: 2 reelHeight: 32*1 ];


    reelLocal.position = ccp(50, 100);
    reelLocal.spinningBlock = ^{
        reelLocal.textureColumn = 2;
    };
    reelLocal.slowingDownBlock = ^{
        reelLocal.textureColumn = 0;
    };

    [self addChild:reelLocal];
    [reelLocal spinWithVelocity:200];
    [reelLocal runAction:[CCSequence actionOne:[CCDelayTime actionWithDuration:3.5] two:[CCCallBlock actionWithBlock:^{
        [reelLocal stopAtIndex:0];
    }]]];

i got EXC_BAD_ACCESS error,
it accurs when i'm adding it a a child ( [self addChild:reelLocal];)
any idea maybe? (i'm using cocos2d 2)

thanks alot!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.