The Daily Click ::. Forums ::. Klik Coding Help ::. Directional Sprites? Need example.
 

Post Reply  Post Oekaki 
 

Posted By Message

NostalgicAlgorithms



Registered
  07/05/2012 19:05:37
Points
  24
18th July, 2012 at 18/07/2012 04:31:54 -

I just recovered from a minor OS crash so I lost some of my tutorial/example stuff.

What I need is a good example and or explanation how to create directional sprites like in Wolf3d or DOOM using MMF2. I have all the necessary art but I'm not sure what to do next. Recalling from memory I remember seeing something coded using set angles in relation to the player object (at increments of 45 degrees) followed by a bunch of "IF" statements. Pixeltheif,Onemanarmy, or Disthron might be the best to ask about this. Help!

Most likely I was looking at Disthron's raycast example but I also had another simpler example I can't seem to locate.

Edited by NostalgicAlgorithms

 
Image
The future of gaming... What the!?!

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
18th July, 2012 at 18/07/2012 13:39:18 -

You just need to find the angle from the player (camera) to the enemy, and then find the difference between that and the enemy's angle.
eg. http://skydrive.live.com/redir?resid=B1E7EE094271BBDA!533

I'd still maintain that trying to make a 3D game with MMF2 is a waste of time - there are other tools *far* better suited to the task.

 
n/a

NostalgicAlgorithms



Registered
  07/05/2012 19:05:37
Points
  24
18th July, 2012 at 18/07/2012 15:49:01 -

Unwillingly I agree that 3d with MMF2 is not it's strong point. However a fake 3d game using a Mode7 type rendering technique is certainly feasible. Thanks for the link Sketchy!

What other tools (short of programing something in C++) could you recommended for a Raycast engine?

Edited by NostalgicAlgorithms

 
Image
The future of gaming... What the!?!

nivram



Registered
  20/07/2006
Points
  171
18th July, 2012 at 18/07/2012 15:58:51 -

This free and outstanding:

Silent Walk: RENAISSANCE

http://www.silentworks.hu/swr/index.php

Marv

 
458 MMF2 & CTF 2.5 examples and games

http://www.castles-of-britain.com/mmf2examples.htm

NostalgicAlgorithms



Registered
  07/05/2012 19:05:37
Points
  24
18th July, 2012 at 18/07/2012 21:07:18 -

Very interesting Nivram! I may mess around with it for another project.
However for a RAYCAST like engine I think http://revert3d.blogspot.com/ is more appropriate for an old school 3d game.

 
Image
The future of gaming... What the!?!
   

Post Reply



 



Advertisement

Worth A Click