# Most Practical way of setting multiple limits in multiple forms.

• (2 Pages)
• 1
• 2

## 18 Replies - 1390 Views - Last Post: 10 February 2013 - 03:35 PMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=311725&amp;s=d97dfacd4ac6fad6836887fa002ffef2&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #16 _HAWK_

• Master(Of Foo)

Reputation: 1159
• Posts: 4,443
• Joined: 02-July 08

## Re: Most Practical way of setting multiple limits in multiple forms.

Posted 10 February 2013 - 02:35 PM

Sure there can be some optimizations, but I think a lambda expression would be relatively fast, but testing is a must.

### #17 Jondeate

Reputation: 0
• Posts: 56
• Joined: 03-February 13

## Re: Most Practical way of setting multiple limits in multiple forms.

Posted 10 February 2013 - 03:21 PM

Thank you all

### #18 andrewsw

• Speak up, I'm wearing a towel

Reputation: 5251
• Posts: 20,329
• Joined: 12-December 12

## Re: Most Practical way of setting multiple limits in multiple forms.

Posted 10 February 2013 - 03:28 PM

In some games you continue walking (at the wall) but don't progress - treading water! It sounds painful . So I assume it allows the walk but doesn't increase the steps/distance.

### #19 Jondeate

Reputation: 0
• Posts: 56
• Joined: 03-February 13

## Re: Most Practical way of setting multiple limits in multiple forms.

Posted 10 February 2013 - 03:35 PM

I already found an easier (to me) way of not letting the player go trough something.
I stoped thinking on the players side, and went ahead and created a path (rectangle) in which the player is allowed to walk into.
Now i gotta find a way of combining rectangles so if the player is walking on path1 and path1 is joined whit path2, the player can keep walking normally.