Collision in the Air?!? There's NOTHING!

Non-platform specific questions.

Collision in the Air?!? There's NOTHING!

Postby asmodeus » Thu Jun 19, 2008 5:46 pm

How can this be? The actor collide an Actor which it doesn't collide!!
Attachments
HowCanThisBe.zip
How can this be?!?
(227.39 KiB) Downloaded 96 times
Last edited by asmodeus on Thu Jun 19, 2008 6:14 pm, edited 1 time in total.
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Collision in the Air?!? There's NOTHING!

Postby DST » Thu Jun 19, 2008 6:01 pm

1st, the arial font is missing.

But the collision is, don't ask me how, its the collision with reg_collision that's doing it.

I removed canjump from draw actor, and moved reg_collision away, and it works fine. i can jump around the screen.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: Collision in the Air?!? There's NOTHING!

Postby asmodeus » Thu Jun 19, 2008 6:19 pm

DST wrote:1st, the arial font is missing.

I've uploaded it with the font now.

DST wrote:I removed canjump from draw actor, and moved reg_collision away, and it works fine. i can jump around the screen.

So you just jump in the air, but you don't walk on the ground, right? I can't need that. I'm working on a game, and there you should can walk on the ground, and you can't jump invinite.
I've got a problem in my game :cry:
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Collision in the Air?!? There's NOTHING!

Postby DST » Thu Jun 19, 2008 6:36 pm

y don't u just use my demo? Its free.

there's nothing wrong with using what others have made. Why reinvent the wheel?

I noticed what u were doing with the collide.y+height...i've tried that before. It couldn't make it work.

In essence, you are trying to recreate the physical response/collision, but adding your own events instead of the normal ones. There are two problems that i see:
1. you're accessing the xy after the draw, instead of before it, as the built-in collision would. There is no way for us to access the player struct that we would need there. Basically, only makslane can access that.
2. You're using a physical response anyway, so the same problems will occur.

Seriously, this is why i made that platform file. It might be complex, but so is what ur doing.

But do whatever makes you happy :D:D:D
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: Collision in the Air?!? There's NOTHING!

Postby asmodeus » Thu Jun 19, 2008 6:39 pm

DST wrote:y don't u just use my demo? Its free.

there's nothing wrong with using what others have made. Why reinvent the wheel?

I noticed what u were doing with the collide.y+height...i've tried that before. It couldn't make it work.

In essence, you are trying to recreate the physical response/collision, but adding your own events instead of the normal ones. There are two problems that i see:
1. you're accessing the xy after the draw, instead of before it, as the built-in collision would. There is no way for us to access the player struct that we would need there. Basically, only makslane can access that.
2. You're using a physical response anyway, so the same problems will occur.

Seriously, this is why i made that platform file. It might be complex, but so is what ur doing.

But do whatever makes you happy :D:D:D


wait. I will try and check if I can make your demo suitable for my game...
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Collision in the Air?!? There's NOTHING!

Postby asmodeus » Thu Jun 19, 2008 6:42 pm

Your demo works with many clone actors but I'd like to work with tiles. I think too many actors would take the game speed down.
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Collision in the Air?!? There's NOTHING!

Postby feral » Fri Jun 20, 2008 12:54 am

you are colliding with the Act_bgColor tiles
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: Collision in the Air?!? There's NOTHING!

Postby asmodeus » Fri Jun 20, 2008 2:10 pm

feral wrote:you are colliding with the Act_bgColor tiles

:shock: That's actually it! Thank you very much!
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron