Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Making selected background areas appear, In Game Maker 6.1
Unspecified
Gorgoo
Posted: May 4 2007, 05:11 PM
Quote Post


Standard Member


Group Icon
Group: Members
Posts: 70
Member No.: 558
Joined: 16-August 04

Status: (0d) [--]


I'm sure it's possible somehow, because most things are, but does anyone know a way to make, say, a circle object that, when overlapping sprites, makes the areas that are overlapped not show (Showing the background instead)? The object itself could still be there, as long as the background is displayed.

OK, so maybe that isn't possible, but I figured it's better to ask and know than not to. And if it is possible, I could use it in something.

Thanks.

This post has been edited by Gorgoo on May 4 2007, 05:11 PM
PMEmail Poster
Top
United States
Zero Kirby
Posted: May 4 2007, 05:26 PM
Quote Post


Well, your local psychic is off to visit your mother!
[*][*][*][*]

Group Icon
Group: Members
Posts: 6252
Member No.: 2501
Joined: 15-August 06

Status: (0d) [--]


What

If you mean, "How do I make something disappear behind the background" that's an easy remedy to perform with tiles.

Just make the tiles with a negative depth value (say, -100000) and they'll overlap pretty much anything with a depth higher than -99999.


--------------------
Falcon Punch is the result of the Sun heating fists. It drives the Blue Falcon. Heating causes destruction of water into the pain, where it then hurts, creating rain. Rain creates flowing water in tears, which can then be converted into other forms through more pain.

My Ref - Full Body Ref (minus the badass hat)

Visit Just Another Just Another Day - The Webcomic!

Super Mario Zero: Game Status (RAZZ Y U STEALING MAH FORMAT BRO)
Mario Object: Pretty much finished!
Enemy Objects: [||||||||--] Just gonna add Spinies, Bullet Bills and Cheep Cheeps!
Boss Fights: None in progress.
General Engine: [|||||||||-] Ranking System Complete! Gonna add pipes!
Levels Complete: [|---------] Haven't even finished the tutorial!
PMUsers WebsiteAOLMSN
Top
Canada
MegaTailzChao
Posted: May 4 2007, 05:41 PM
Quote Post


So long, and thanks for all the fish.
[S][*][*][*][*]
[*][*]

Group Icon
Group: Site Staff
Posts: 15788
Member No.: 2267
Joined: 2-July 06

Status: (0d) [--]


Noo, I think he means something like the Lens of Truth in the N64 Zelda games.

But yeah I'd like to know how to do it, too.


--------------------
user posted image
user posted imageuser posted image
PMEmail PosterMSN
Top
United States
Zero Kirby
Posted: May 4 2007, 06:16 PM
Quote Post


Well, your local psychic is off to visit your mother!
[*][*][*][*]

Group Icon
Group: Members
Posts: 6252
Member No.: 2501
Joined: 15-August 06

Status: (0d) [--]


QUOTE (MegaTailzChao @ May 4 2007, 03:41 PM)
Noo, I think he means something like the Lens of Truth in the N64 Zelda games.

But yeah I'd like to know how to do it, too.

Um.

If only the covered parts are invisible... uh... if you find out, tell me.

But making the whole thing invisible is easier.


--------------------
Falcon Punch is the result of the Sun heating fists. It drives the Blue Falcon. Heating causes destruction of water into the pain, where it then hurts, creating rain. Rain creates flowing water in tears, which can then be converted into other forms through more pain.

My Ref - Full Body Ref (minus the badass hat)

Visit Just Another Just Another Day - The Webcomic!

Super Mario Zero: Game Status (RAZZ Y U STEALING MAH FORMAT BRO)
Mario Object: Pretty much finished!
Enemy Objects: [||||||||--] Just gonna add Spinies, Bullet Bills and Cheep Cheeps!
Boss Fights: None in progress.
General Engine: [|||||||||-] Ranking System Complete! Gonna add pipes!
Levels Complete: [|---------] Haven't even finished the tutorial!
PMUsers WebsiteAOLMSN
Top
Unspecified
zzo38
Posted: May 4 2007, 06:27 PM
Quote Post


Registered user


Group Icon
Group: Members
Posts: 1621
Member No.: 2549
Joined: 21-August 06

Status: (0d) [--]


You can do it rectangular by using views. (I don't know how to do it circular, though.)

I made a example in Game Maker 4.3. You could convert it to 6.1 if is compatible. http://zzo38computer.cjb.net/public/viewboxtest.zip


This post has been edited by zzo38 on May 4 2007, 06:27 PM


--------------------
Access my web-site
Vonkeror: the new web-browser
Wikipedia user-page
My gopher site Forget Web 2.0. Now is the time for Gopher 2.0.
Furryscript!!

Member of Anti-Master-Balls

Message to the moderator: I don't want you to add the badges under my name anymore.
PMUsers Website
Top
Unspecified
Gorgoo
Posted: May 4 2007, 10:12 PM
Quote Post


Standard Member


Group Icon
Group: Members
Posts: 70
Member No.: 558
Joined: 16-August 04

Status: (0d) [--]


Actually, the idea was for a Worms-style game, with a certain object that you can walk through, but shows the background, instead of actually destroying selected areas (which I'm pretty sure is impossible using Game Maker). There've been other ways of doing it that I've read talked about, but most supposedly run slowly on a lot of computers, so I was hoping that someone would know how to make an object show the background.

Unfortunately, I guess it can't be done. A solid-color background isn't bad, of course, so I think I'll probably end up using that. Thanks, though.
ph34r.gif

This post has been edited by Gorgoo on May 4 2007, 10:12 PM
PMEmail Poster
Top
Unspecified
zzo38
Posted: May 4 2007, 10:52 PM
Quote Post


Registered user


Group Icon
Group: Members
Posts: 1621
Member No.: 2549
Joined: 21-August 06

Status: (0d) [--]


QUOTE (Gorgoo @ May 4 2007, 08:12 PM)
..........
Unfortunately, I guess it can't be done. A solid-color background isn't bad, of course, so I think I'll probably end up using that. Thanks, though.
:grin:

You didn't look at the file that I posted? Well, you would need to convert it to 6.1, or you can make that game in 4.3 instead if you want. But, mine is only in rectangular not circles, so be careful.


--------------------
Access my web-site
Vonkeror: the new web-browser
Wikipedia user-page
My gopher site Forget Web 2.0. Now is the time for Gopher 2.0.
Furryscript!!

Member of Anti-Master-Balls

Message to the moderator: I don't want you to add the badges under my name anymore.
PMUsers Website
Top
Unspecified
Gorgoo
Posted: May 4 2007, 11:40 PM
Quote Post


Standard Member


Group Icon
Group: Members
Posts: 70
Member No.: 558
Joined: 16-August 04

Status: (0d) [--]


No, sorry, I don't have anything before 6.1 on my computer, so I couldn't use it. But from what I understood, you were just using the views to look through something, while I was hoping for some sort of collision detection.

However, what you mentioned about the views is actually pretty smart, and I think I have a way for you to even use circles or shapes for that sort of thing. If you put a sprite with a transparent center on the view used to look through something, and set its x and y to view_x and view_y in the step event, you could have a non-rectangular border. Of course, it wouldn't match to its surroundings, but it could be used for a telescope or something.

Anyways, I found an alternative. It's a little bit laggy, but it works. Thanks for all the help, though. I could probably use that view trick another time.
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0583 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.43 ]