Page 1 of 1

Way to many questions!

PostPosted: Mon Nov 27, 2006 10:37 pm
by firerfun
I just found this program last night and I LOVE IT! I've watched 4 or 5 of the tutorials but I learn alot better by doing. And i know I'm gunna have lots of questions. So, Here's the first.

How do I make an object solid? Like, is there a way to make it so the main charcter cant walk through it?

PostPosted: Mon Nov 27, 2006 11:04 pm
by firerfun
Question 2:

I'm doing a birds-eye veiw thing and I'm trying to set the background as grass. so i have a green pach I set down and then put as "infinate" in the actor control. When I do that it works fine. but if i shut the game down then re-load it every where that used to be green is now white. how do i keep it green?

PostPosted: Mon Nov 27, 2006 11:36 pm
by Hedfone
I can answer both of your questions.
for the first one, use a collision event and a physical response.
this wil make the object "solid." play around with the physical response values until you get it right.

and number two, im guessing that you aren't working WTH GE's transparency. in other words, the colour in the upper corner of your "grass" graphic is what appears as transparent whe you load it into GE. instead of making the background green, make the back larger than your graphic and add a white(white can be switched with any unused colour) border. this Should work fine.

oh, and welcome to GE! :D

PostPosted: Tue Nov 28, 2006 12:03 am
by firerfun
Ok, I figured out (thanks to your help) how to make things "solid". But, I didn't really understand your explination about the grass. Sorry : (. If you can explain it in any simpler terms that would be wonderful. and if you can't o well i'll figure somthing out

PostPosted: Tue Nov 28, 2006 12:24 am
by makslane
firerfun wrote:I'm trying to set the background as grass. so i have a green pach I set down and then put as "infinate" in the actor control. When I do that it works fine. but if i shut the game down then re-load it every where that used to be green is now white. how do i keep it green?


Can you send me this game?

PostPosted: Tue Nov 28, 2006 12:29 am
by Fuzzy
if your graphic doesnt contain a transparency channel, also called an alpha channel, the GE will look at the upper left corner pixel, take that color, and make any pixels that match that color totally transparent.

To work around this, make a border around your tile. This will become transparent. It will appear to be discarded when in GE.

here is a visual example. the X becomes transparent in GE, and the O stays visible

This is your tile...
Code: Select all
XOOOOOOO
OOOOOOOO
OOOOOOOO
OOOOOOOO
OOOOOOOO
OOOOOOOO


Here is how you should draw the tile
Code: Select all
XXXXXXXX
XOOOOOOX
XOOOOOOX
XOOOOOOX
XOOOOOOX
XXXXXXXX



make sense?

If you dont understand, I will draw some tiles when I get home from work.

PostPosted: Tue Nov 28, 2006 5:33 pm
by Flob
Im right there with ya Firerfun, im almost done with my super mario brothers 3 game, =D well, - the timer =P