Collision with trees??? how to code it?
by Matthews_30 · in Torque Game Builder · 10/18/2005 (4:05 pm) · 3 replies
I have a character and several trees in the map. i need to set proper collisions walks the map.
philip mansfeld told me: "...If the player is further down the screen than the tree, then they walk in front. If the player is further up, then they go behind the tree"
i can code this this in torquescript, can somebody tell me?
any comment may help, thanks.
philip mansfeld told me: "...If the player is further down the screen than the tree, then they walk in front. If the player is further up, then they go behind the tree"
i can code this this in torquescript, can somebody tell me?
any comment may help, thanks.
#2
10/18/2005 (6:16 pm)
My problem is not to set the collisions up. my problem is how develop the solution provided by philip, the algorithm or the math behind it.
#3
Get coding a couple of 'simple' games such as pong, tetris, space invaders and so-on. Once you've got these under your belt you'll have a much better idea of what goes into a game and you'll also start developing a feel for how to approach problems and what the solutions are.
Or just start simply. Don't worry about the trees in your RPG and get some of the other bits done. Get the player moving around the map. Then add in a couple of NPCs, get them walking around under AI control and have some interaction with the player.
10/19/2005 (12:08 am)
Matthews - You've made a number of posts all based around this similar concept, and from the sounds of it, you don't seem to have much programming experience. Maybe you should put all of these ideas on the back burner and start with something a bit easier.Get coding a couple of 'simple' games such as pong, tetris, space invaders and so-on. Once you've got these under your belt you'll have a much better idea of what goes into a game and you'll also start developing a feel for how to approach problems and what the solutions are.
Or just start simply. Don't worry about the trees in your RPG and get some of the other bits done. Get the player moving around the map. Then add in a couple of NPCs, get them walking around under AI control and have some interaction with the player.
Torque 3D Owner Stephen Zepp