
-----------------------------------
Velocity
Mon Dec 12, 2011 4:48 pm

collision border
-----------------------------------
How do i set borders for my game? So that if you move the rectangle right and it hits a wall it cant go past that wall

-----------------------------------
Velocity
Mon Dec 12, 2011 5:02 pm

RE:collision border
-----------------------------------
Never mind problem resolved, how do i delete this thread?

-----------------------------------
mirhagk
Mon Dec 12, 2011 5:35 pm

RE:collision border
-----------------------------------
Threads actually don't normally get deleted, usually they are resolved and just remain so that others can view them and get help without having to create new topics.

-----------------------------------
Aange10
Mon Dec 12, 2011 8:55 pm

RE:collision border
-----------------------------------
However, this thread is pointless as it provides no solution to somebody wondering 'How do I set collision with borders'. I believe we were discussing something in the gist of the scenario a while back - the comic of the man frustrated to find a thread with no useful information in it.


Should be deleted.

-----------------------------------
mirhagk
Mon Dec 12, 2011 9:39 pm

RE:collision border
-----------------------------------
Yeah, I just realized that you delete your last post, so he probably could've deleted his first post and the thread perhaps, until he and we replied to it.

-----------------------------------
Velocity
Mon Dec 12, 2011 9:41 pm

RE:collision border
-----------------------------------
here ill post the solution that i found out:

if x1 >= maxx - 125 or x2 >= maxx - 25 then
            x1 -= 10
            x2 -= 10
end if
if x1 