player disappearing when colliding with 2 solids [solved]

For questions about using Classic.

Post » Wed Jan 12, 2011 10:05 pm

I have a problem, i am making a top down shooter, to make sure that my player does not leave the screen, i have placed solids around to border of my map, when it touches just one solids, it does what it should do, and stop moving, but when it touches 2 solids at the same time, in a corner i mean, the player just disappears. Can anyone of you help me with this?
you can download my .cap file here:

http://www.mediafire.com/?33jegsnd6s28qll

thanks in advance
B
1
G
1
Posts: 3
Reputation: 431

Post » Wed Jan 12, 2011 10:15 pm

Are you using a behaviour for that or do you made your own custome constrols? because in case of Custom Constrols it would be very easy to fix By just setting the Custome Control as a sub-even under condition
IF object position x<0
IF object position x>[number of your level width]
IF object position y<0
IF object position y<[number of your level hight]

just like this:
http://dl.dropbox.com/u/15566547/reworked.cap

is that what you meant?
if yes now you can kick that ugly "blocking" objects and gain some VRAM :)
ImageImageImageImage
B
26
S
7
G
7
Posts: 572
Reputation: 6,097

Post » Wed Jan 12, 2011 10:42 pm

yeah thanks, this helped me a lot :), i can now finnaly move on with my project, because this has been a problem for 2 days now :p
B
1
G
1
Posts: 3
Reputation: 431

Post » Wed Jan 12, 2011 10:49 pm

now, how do i make this topic solved?
B
1
G
1
Posts: 3
Reputation: 431

Post » Wed Jan 12, 2011 10:56 pm

Just edit your first post, you can change the topic title there.
B
10
S
3
G
3
Posts: 110
Reputation: 2,206

Post » Thu Jan 13, 2011 8:45 am

actualy - i think i did something wrong. forgoten that you dynamic moving direction.
are you sure its okey lol?
sorry - it works perfect with just 8-direction movement ^^
ImageImageImageImage
B
26
S
7
G
7
Posts: 572
Reputation: 6,097


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests