The Daily Click ::. Forums ::. Klik Coding Help ::. 8-Dir jumping & double tap running?
 

Post Reply  Post Oekaki 
 

Posted By Message

LiL_X



Registered
  01/06/2003
Points
  8
7th June, 2003 at 20:30:31 -

does anybody kno how to do jumping with the 8 dir movement? Also does anybody kno how to make a character run by tapping left or right twice?

 
n/a

LiL_X



Registered
  01/06/2003
Points
  8
7th June, 2003 at 21:02:20 -

I also need help wit enemy a.i. for a beat em up engine.
im usin TGF.

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
7th June, 2003 at 21:21:52 -

To tap left and right then do a run:

*Right was pressed - set player. alt a to 10
+player.alt a = 0

*always
+player.alt a > 1 - subtract 1 from player.alt a

*Right was pressed
+player.alt a = >< 0 - Run (set speed to a faster one)

Then repeat for left.

For A.I in beat em ups, the best approach is usually a status/probability counter. CHeck this post that i answered before to santa:

http://www.create-games.com/forum_post.asp?id=30616

Jumping is just a matter of illusion, just make him move up but make a shadow object underneath the player.


Upon pressing "shift" - set player.alt b to 10, create shadow underneath player.
+player.alt b = 0

player.alt b >0 - player.y = player.y + 1, player. alt b - 1

Hope that helps

-Andy





 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
8th June, 2003 at 10:54:52 -

double post.
Wondering how u did double tap run.
Also! if u wanted to learn 8 directions jump look at the game on TGF disc called "Magician's Lair". That has 8 dir jump.

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

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
8th June, 2003 at 15:18:58 -

Andy, that way would cause the Alt value A to equal 0 after .1 seconds! That's much too fast.

 
Craps, I'm an old man!
   

Post Reply



 



Advertisement

Worth A Click