Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Sep 19, 2019 7:24 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: canvas control
PostPosted: Tue Apr 27, 2010 5:26 pm 
Offline

Joined: Wed Jun 21, 2006 6:13 pm
Posts: 11
Just messing around, trying to get the feel for RealBASIC, I threw together a few images and cycle through them to animate a guy walking around the screen. My only roadblock right now is that I can't figure out how to set the transparency in the canvas. My little guy is doomed to forever walk around in a white square. I read that the call is transparency=1 but I can't get it to go.

Quote:
canvas1.backdrop = cloudstep1front
canvas1.backdrop.transparent=1


That's how I've put it on one of my frames, but I still get the white square. I feel like I am totally missing the mark here.

[nvm, I was being dumb and put it in my if checks and expected it to work. It's all fine now. I guess this can be deleted]


Top
 Profile  
Reply with quote  
 Post subject: Re: canvas control
PostPosted: Tue Apr 27, 2010 7:10 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
You should use ONE canvas... and ONE PICTURE

use the Picture to Draw you Figure [without any background... ie make the background WHITE]...

Then in the CANVAS PAINTEVENT.... draw your picture


g.drawpicture stickfigure_picture,x,y

You can make an array of pictures with each one being an animation frame, and cycle them across the canvas .. this way you only have to calculate and draw each version one time.

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group