Desktop Dungeon type game help needed

For questions about using Classic.

Post » Sat Apr 30, 2011 4:16 pm

Im trying to create a desktop dungeon type game ,The problem im having is what behavior should i use?.The RTS behavior does not work with this type of game and im having trouble with the grid behavior.The character must move 32 pixels left ,right up or down when i press one of the arrow buttons , But i also want the character to move towards the mouse when i click inside a part of the dungeon.However when the character moves towards the mouse , he goes through the walls instead of around the walls.

RTS behavior could solve that problem but it doesn't.Is there any other way of letting the character go around the walls instead of going through it.My characters are 32x32 in size.The narrow passages are 32 pixels in width.I also tried to change the collision mask to a smaller 16x16 size but when i use rts movement the character stays in one place instead of moving to the mouse position.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Sat Apr 30, 2011 4:25 pm

Did you try setting the cell size smaller in the RTS preferences?
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Sat Apr 30, 2011 5:16 pm

you can implement your own A* algo using events

http://www.policyalmanac.org/games/aStarTutorial.htm

or play around with rts, but i never got rts to work
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sat Apr 30, 2011 6:05 pm

Thanks for the link QuaziGNRLnose.I will take a look at that tutorial and see if i can find some kind of work around for this problem.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Sat Apr 30, 2011 7:55 pm

Im sorry for Double posting but here is the cap file.I used rts and grid movement.You will notice the RTS movement not responding correctly at times.Left click on the enemy to move to the enemy.Right click to attack the enemy while the mouse is over the enemy.

[url:2yhedanq]http://dl.dropbox.com/u/7658043/dd.cap[/url:2yhedanq]
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests