vbGore Free Online RPG Engine

Revolutionizing Visual Basic ORPG Development
It is currently Fri May 24, 2013 9:28 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Click Char movement and auto attack possible?
PostPosted: Thu Feb 05, 2009 7:11 am 
Lucky Number 7

Joined: Thu Feb 05, 2009 12:53 am
Posts: 7
Hello, is it possible to realize char movement with mouse click and attacking with the mouse click? an autoattack (1click at the target, player attacks it until he stops it with movement or enemys death)?

the ctrl attack and wasd movement suxx, i break the fingers when i like to sprint^^

any idears or tutorials?


Top
 Profile  
 
 Post subject: Re: Click Char movement and auto attack possible?
PostPosted: Thu Feb 05, 2009 7:19 am 
Slave to the BB

Joined: Sat Feb 24, 2007 11:17 pm
Posts: 2704
Location: The Aussie Land
Yea its easy, just do a client-side check whenever the user clicks the mouse-button. If the clicked tile has a char and is in range then attack, otherwise move to that location.


Top
 Profile  
 
 Post subject: Re: Click Char movement and auto attack possible?
PostPosted: Thu Feb 05, 2009 8:18 am 
Lucky Number 7

Joined: Thu Feb 05, 2009 12:53 am
Posts: 7
I found some commands for it but dont know how to put them together^^ im a big noob at this engine and there are no examples at the documentation :(. can any 1 plz help


Top
 Profile  
 
 Post subject: Re: Click Char movement and auto attack possible?
PostPosted: Thu Feb 05, 2009 9:55 am 
Aleron Coder

Joined: Fri Jan 05, 2007 5:36 am
Posts: 2964
Location: Germany
read up on character movement (AIs maybe?)
and input.


Top
 Profile  
 
 Post subject: Re: Click Char movement and auto attack possible?
PostPosted: Thu Feb 05, 2009 3:02 pm 
=^.^= Kitty =^.^=

Joined: Tue Mar 20, 2007 10:46 pm
Posts: 1821
Location: Sydney Australia
Well, try figure out an auto-path finder.

You click on x,y position, where as your char is at x,y position. Then move accordingly

Up to you to do the rest :P


Top
 Profile  
 
 Post subject: Re: Click Char movement and auto attack possible?
PostPosted: Thu Feb 05, 2009 3:50 pm 
Aleron Coder

Joined: Fri Jan 05, 2007 5:36 am
Posts: 2964
Location: Germany
The AI already does this, or?
its 12 chapter i didnt look into yet :D


Top
 Profile  
 
 Post subject: Re: Click Char movement and auto attack possible?
PostPosted: Thu Feb 05, 2009 3:51 pm 
Bit Baby

Joined: Sun Jul 20, 2008 5:48 pm
Posts: 387
Location: Mercer Island , Washington
Assuming you figure out how to have the server differiantiate tiles and chars, instead of using a path-finder, you could check that the click is on the same x plane or y plane as the char and move in that direction. Shouldnt be to hard. As for 1 key targeting, its already implemnted. I believe its the "E" key. check the gameconfig.exe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group