This site requires JavaScript, please enable it in your browser!
Greenfoot back
DesaGrammer
DesaGrammer wrote ...

2015/1/11

Shooting and item

DesaGrammer DesaGrammer

2015/1/11

#
Hey all I've been given a project at school to make a x-wing vs. tie fighter game. I need to shoot a laser from the tie fighter is there anyway that I can make the laser point the same direction the tie fighter is pointing? Thanks
danpost danpost

2015/1/11

#
When firing, do these three things: (1) create the laser (2) set its rotation (3) add it to the world as opposed to this: (1) add a new laser into the world
DesaGrammer DesaGrammer

2015/1/11

#
Sorry I should have worded that better. I meant how to make the image of the laser turn depending on the angle it is fired at e.g. is the tie fighter is at 90 degrees then the image of the laser is at 90 degrees or the tie fighter is at 180 degrees then the image of the laser is at 180 degrees.
DesaGrammer DesaGrammer

2015/1/11

#
I just found it out but thanks anyway :)
danpost danpost

2015/1/11

#
I understood perfectly. My last suggestion stands.
DesaGrammer DesaGrammer

2015/1/11

#
Thanks I made a game a wile ago and for got that they turned anyway But thanks
You need to login to post a reply.