Can you use :setFillColor on Groups and/or Sprites?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Tinting Groups & Sprites?
tinting of sprites works!
-finefin
@canupa, nice how'd you do it? So far I'm only seeing errors.
hm, don't know...
I'm using spriteGrabber and do this:
1 2 3 | hero.object=heroSheet:grabSprite("hero", true ,{walk={1,4,500,0}}) hero.object:show(800,50,1.0,"c") hero.object:setFillColor( 200, 0, 0 ) |
Sweet! I thought I tried this earlier, but it worked just now = )
1 2 3 4 5 | local heroData = sprite.newSpriteSheetFromData( "hero.png", require("HeroData").getSpriteSheetData() ) local heroSet = sprite.newSpriteSet( data,1,4 ) sprite.add( heroSet,"hero",1,4,300,0 ) local hero = sprite.newSprite( heroSet ) hero:setFillColor( 200, 0, 0 ) |
Yup the new image features (subscribers only via daily builds atm) are fantastic, they really help cut down on image duplication to vary colors :D
views:1750 update:2011/9/19 13:40:57
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
How to copy a group and it's objects and how to copy a table?
Possible to create a drawing app in Corona?
Up-To-Date Autocomplete Wordlist
widget.newButton Events - What The Heck?????
More memory efficient? An invisible image, or runtime listener for touches?
memory/code optimization help
How to remove Runtime Listeners if you can't access the objects?
Application failed codesign verification - over and over again... ugh!!!!!!!
Why do I have to use _G?
Amazon Appstore issue
Possible to create a drawing app in Corona?
Up-To-Date Autocomplete Wordlist
widget.newButton Events - What The Heck?????
More memory efficient? An invisible image, or runtime listener for touches?
memory/code optimization help
How to remove Runtime Listeners if you can't access the objects?
Application failed codesign verification - over and over again... ugh!!!!!!!
Why do I have to use _G?
Amazon Appstore issue
corona forums © 2003-2011