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

Post Reply  Post Oekaki 
 

Posted By Message

NostalgicAlgorithms



Registered
  5/7/2012 7:05:37 PM
Points
  24
18th July, 2012 at 7/18/2012 4:31:54 AM -

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
  11/6/2004
Points
  2482

VIP Member
18th July, 2012 at 7/18/2012 1:39:18 PM -

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
  5/7/2012 7:05:37 PM
Points
  24
18th July, 2012 at 7/18/2012 3:49:01 PM -

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
  7/20/2006
Points
  111
18th July, 2012 at 7/18/2012 3:58:51 PM -

This free and outstanding:

Silent Walk: RENAISSANCE

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

Marv

 
355 open source examples and games

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

NostalgicAlgorithms



Registered
  5/7/2012 7:05:37 PM
Points
  24
18th July, 2012 at 7/18/2012 9:07:18 PM -

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