Collision problem

Talk about making games.

Collision problem

Postby sgames » Fri Jul 15, 2011 5:59 pm

Hello, need help in creating the perfect collision so that the player is not adhering to the walls. If anyone wants to help throw the package with the first level of my game.
Sorry for the mistakes Language Translator.
Attachments
poziom_1.rar
(836.41 KiB) Downloaded 127 times
Zapraszam SGameS.pl pomocne tutoriale i przykłady dla użytkowników programu Game Editor.
User avatar
sgames
 
Posts: 10
Joined: Sun May 29, 2011 8:13 pm
Score: 3 Give a positive score

Re: Collision problem

Postby Camper1995 » Fri Jul 15, 2011 6:35 pm

I have the same problem in my games as you have. I will appreachiate if someone will make that collision wall thing.

By the way, your game is awesome. Graphics fantastic, movement almost perfect! Great! +1 for that man
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Collision problem

Postby lcl » Fri Jul 15, 2011 7:00 pm

Collision - left or right side - script editor:
Code: Select all
double yvel = yvelocity;
//input the physicalResponse here
yvelocity = yvel;

This should work. :)
Tell if it doesn't.
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Collision problem

Postby Camper1995 » Fri Jul 15, 2011 9:32 pm

No, doesnt solve it. :? I tried with just a block image in another block image (not curves) and it's not solving it.

The actor keeps stuck on the wall and doesnt fall down.
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Collision problem

Postby sgames » Fri Jul 15, 2011 9:47 pm

@up :(
Zapraszam SGameS.pl pomocne tutoriale i przykłady dla użytkowników programu Game Editor.
User avatar
sgames
 
Posts: 10
Joined: Sun May 29, 2011 8:13 pm
Score: 3 Give a positive score

Re: Collision problem

Postby skydereign » Fri Jul 15, 2011 9:52 pm

It does work, its just you need to have two collision events. One for the colliding with the top of the platform, and one for left and right. Here's the ged with it working.
Attachments
w_1_lvl_1.ged
(105.61 KiB) Downloaded 86 times
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Collision problem

Postby Camper1995 » Fri Jul 15, 2011 10:37 pm

Ahh,... now that's the problem. I was doing it like: Collision on Left and Right and then Collision on any side. :roll: :oops:

Thanks guys, again.

:)
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest