pixelremove function?

Ideas for Game Editor evolution.

pixelremove function?

Postby Hblade » Thu Apr 15, 2010 4:50 pm

Ever played a game called Worms? You know how when you hit the ground, it darkened those pixels and made then un fit with collision? So like, if you walk into a part thats been shot(It looks like a hole but it's actually the pixels that got darker), you wont collide with the pixels that are darker.

I'd love for this feature to be in GE, allowing you to make a digging game or a game where you have to blow up stuff.
Image
Tutochao
    tutorials
Foxmosa
Image

Please check out our website
http://game-editor.webs.com/

Made by Hblade and MrJolteon
User avatar
Hblade
 
Posts: 1868
Joined: Fri Dec 08, 2006 11:14 pm
Score: 79 Give a positive score

Re: pixelremove function?

Postby MrJolteon » Thu Apr 15, 2010 5:13 pm

the worms games i've played, these pixels disappear. That is Worms 2006-2008 on a cellphone :P
Images of my game Pokémon Violet(Size is 155mb...):
http://www.mediafire.com/file/ueyv587oy ... taller.rar
Image
General have 2222 topics
User avatar
MrJolteon
 
Posts: 817
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stuck in the SubNet. GET ME OUTTA HERE!!!
Score: 37 Give a positive score

Re: pixelremove function?

Postby Hblade » Thu Apr 15, 2010 5:16 pm

Oh :D well that'll be good too :3
Image
Tutochao
    tutorials
Foxmosa
Image

Please check out our website
http://game-editor.webs.com/

Made by Hblade and MrJolteon
User avatar
Hblade
 
Posts: 1868
Joined: Fri Dec 08, 2006 11:14 pm
Score: 79 Give a positive score

Re: pixelremove function?

Postby krenisis » Thu Apr 15, 2010 11:20 pm

Well you can do this
1) have 2 pixels color and dark
2) when your actor collides with color destroy actor color pixel and create dark pixel.
3) Make the dark pixel so that there is no collision with that

Thats 1 way of doing it but iam sure there are better ways
Tutorial Database for all beginners click this link
viewtopic.php?f=4&t=8680
krenisis
 
Posts: 615
Joined: Sat Jul 25, 2009 3:27 pm
Score: 46 Give a positive score

Re: pixelremove function?

Postby Hblade » Thu Apr 15, 2010 11:40 pm

Or you could draw the whole wall / level via canvas actor and use a customized collision based on the x and y positions and when it "Collides" with that pixel it moves it or destorys it, causing pixel perfect gaming but that would cause lag, as will the method you gave me lol :D

Nice try though :3
Image
Tutochao
    tutorials
Foxmosa
Image

Please check out our website
http://game-editor.webs.com/

Made by Hblade and MrJolteon
User avatar
Hblade
 
Posts: 1868
Joined: Fri Dec 08, 2006 11:14 pm
Score: 79 Give a positive score

Re: pixelremove function?

Postby DilloDude » Sat Jul 31, 2010 9:43 am

You can use a canvas to draw the ground on, and do collisions normally with it. For collisions, you can either write your own draw script, or use draw_from with a transparent actor to erase sections.
If you wanted it to appear darkened instead, you could have a second backgroud canvas with the same image but darker.
Image
When you accidentally forget a break statement inside a switch, sometimes all hell breaks loose.
User avatar
DilloDude
 
Posts: 853
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 53 Give a positive score

Re: pixelremove function?

Postby Bee-Ant » Sat Jul 31, 2010 10:06 am

Or...
You can trick it by using this sprite
Image
User avatar
Bee-Ant
 
Posts: 3241
Joined: Wed Apr 11, 2007 12:05 pm
Location: Malang, Indonesia
Score: 135 Give a positive score

Re: pixelremove function?

Postby DBGames » Mon Aug 09, 2010 1:28 pm

a little off topic, but that sprite hurts my eyes a bit.
User avatar
DBGames
 
Posts: 78
Joined: Wed Jun 24, 2009 10:13 am
Location: Bismarck, North Dakota
Score: 6 Give a positive score


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest