Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Projectile modding problem  (Read 1719 times)

Muffel

  • Lieutenant
  • **
  • Posts: 68
    • View Profile
Projectile modding problem
« on: September 11, 2012, 12:19:55 AM »

I'm trying to create a weapon which shots a round projectile. The projectile is a .png with a circle shape, but when I try it ingame the projectile is always flat, it is as wide as it should be, but only half as long as it should be, so it's an oval.

Here is the .proj-code:
Code
{
"id":"mbf_basic_bullet",
"specClass":"projectile",
"spawnType":"BALLISTIC",
"collisionClass":"PROJECTILE_FF",
"collisionClassByFighter":"PROJECTILE_FIGHTER",
"length":8.0,
"hitGlowRadius":0,
"width":8.0,
"fadeTime":0.125,
"fringeColor":[0,0,0,0],
"coreColor":[255,255,255,255],
"pixelsPerTexel":5.0,
"bulletSprite":"graphics/missiles/mbf_basic_bullet.png",
}
Logged

Okim

  • Admiral
  • *****
  • Posts: 2161
    • View Profile
    • Okim`s Modelling stuff
Re: Projectile modding problem
« Reply #1 on: September 11, 2012, 03:40:12 AM »

Known problem. Stretch the png file until you get it round in game. Keep the original png somewhere as this is probably going to be fixed.

Trylobot

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1170
    • View Profile
    • Github profile
Re: Projectile modding problem
« Reply #2 on: September 16, 2012, 06:10:46 PM »

This is fixed in the very next build, it's in the announcements thread
Logged