Jump to content

Laser beams/tracers with Sprite?


Pastaspace
 Share

Recommended Posts

It does:

http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/sprite/

 

Basically, just use SetSize() to make it really long and skinny, and then set the view mode to 6:

http://www.leadwerks.com/werkspace/page/documentation/_/user-guide/spritesetviewmode-r832

 

That will make it rotate around its own Z axis, so you just point the sprite entity wherever the laser beam should point and it will look right.

 

This is how I did the bullet tracers in the FPS weapon model pack.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

The sprite page under the command reference is empty.

 

The user guide page looks like it should be a page that the empty command reference page would point to.

 

I also can't find any reference in the user guide to sprites (I may well have missed it) so I can't see any other of the sprite functions.

content over form, game play over all.

Link to comment
Share on other sites

It does:

http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/sprite/

 

Basically, just use SetSize() to make it really long and skinny, and then set the view mode to 6:

http://www.leadwerks.com/werkspace/page/documentation/_/user-guide/spritesetviewmode-r832

 

That will make it rotate around its own Z axis, so you just point the sprite entity wherever the laser beam should point and it will look right.

 

This is how I did the bullet tracers in the FPS weapon model pack.

 

Alright, what are the rules for loading files in for sprites, just flat .mdl files? .tex files?

Also it doesn't seem that the C++ class for sprite has a SetViewMode function.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...