The Daily Click ::. Forums ::. Klik Coding Help ::. Walls in MMF?
 

Post Reply  Post Oekaki 
 

Posted By Message

Serenade



Registered
  18/12/2003
Points
  15
17th January, 2004 at 00:19:29 -

This is more of a straightfoward question rather than a problem, how do you create walls or simulate boundaries? Especially in an isometric view? For my game I'm having it so you can move around towns freely, but I don't want people just walking all over the place? Anyone know of any article tha exist or a game which already has this implemented so I can reproduce the formula?

Thanks in advance...

 
"Absolute destruction is the only true perfection."

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
17th January, 2004 at 02:53:56 -

If you're using a custom movement (I hope you are ) but make some detector objects, and position them around the player. Then you can test whether it's overlapping a wall or not, and if the player is able to move in a direction.

 
gone fishin'

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
17th January, 2004 at 03:15:04 -

If you're using isometrics then you should look into Arrays. That way you could do an easy tile-based movement (eg, 1 block at a time until you let go of the button) with walls and whatever, without even using collision detection

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
17th January, 2004 at 12:09:20 -

Try looking at the Isometric Grid object 2.0, it comes in the Clickteam Bonus pack.

 
- Tigerworks

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
17th January, 2004 at 12:15:37 -

If you are not using custom movement, you are going to have to use a "foot detector" that actually controls the movement, and then set the player graphic to always stay on the detector.

 
Craps, I'm an old man!

Rycon



Registered
  20/09/2002
Points
  996
19th January, 2004 at 00:14:44 -

If you dont figure it out, I got sombody for you to talk to. That is if he will talk.

 
We are the music makers, we are the dreamers of dreams...
   

Post Reply



 



Advertisement

Worth A Click