
-----------------------------------
ShadowStorm
Tue May 20, 2003 9:54 am

Game Help
-----------------------------------
In my attached game, I have two problems. The first is that I couldn't get my laser to fire at the same angle as the ship... as in fire towards where the ship is pointed...

the second is that i tried to stop my pics from getting cut off when they rotate.., i tried putting a border but that didn't work (as was recommended in my previous thread)


help!!  :?:  :?  :shock:  :?

-----------------------------------
kythoon
Tue May 20, 2003 3:47 pm


-----------------------------------
what would happen if you made alot of white background on the picture, so when turned, only it would be cut off

-----------------------------------
ShadowStorm
Wed May 21, 2003 12:14 pm


-----------------------------------
^^^^

can some please help me??? :?:  :?:

-----------------------------------
ShadowStorm
Thu May 22, 2003 2:09 pm


-----------------------------------
IS ANYONE GOING TO HELP ME!!>>!?!??! I NEED THIS URGENTLY!!?!?!?!?

 :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:

-----------------------------------
Asok
Thu May 22, 2003 4:43 pm


-----------------------------------
calm down, caps r not cool, if u're not getting a response then people probably either a) don't know the answer or b) don't want to help you. I believe it's the first one in most cases. None the less bumping your thread is useless if it's still on the first page.

-----------------------------------
whowho
Thu May 22, 2003 4:57 pm


-----------------------------------
ok...i dun get it
who is Na Po

-----------------------------------
Tony
Thu May 22, 2003 6:42 pm


-----------------------------------
well as for you pictures... I dont see any borders around your images.. go add them... NOW  :lol: 

as for your ships firing.. I have no idea whats going on there... Basically you should just use the same axis displacement values as your ship to get the direction

-----------------------------------
Catalyst
Thu May 22, 2003 11:53 pm


-----------------------------------
heres the image problem

    Naboo_Fighter (i) := Pic.Rotate (Naboo_Fighter (0), i * 10, Pic.Width (Naboo_Fighter (0)) div 2, Pic.Height (Naboo_Fighter (0)) div 2)

that is the correct code for making the Naboo images, youll have to apply to the others

for the shooting its more complicated, try thinking of the laser as a projectile, it might help (then move it the same way u moved ur ship)

-----------------------------------
ShadowStorm
Fri May 23, 2003 9:10 am


-----------------------------------
thanx alot Catalyst  :D  :D  :D

-----------------------------------
ShadowStorm
Fri May 23, 2003 9:30 am


-----------------------------------
I'm still having trouble getting it to shoot in the direction of the front of the ship.... arghh. i'm going nuts  :?  :?

-----------------------------------
ShadowStorm
Fri May 23, 2003 9:34 am


-----------------------------------
Catalyst, i remember seeing a game you made, the asteroid one, that you posted in the submissions forum... how did you get it to fire in that one...

-----------------------------------
Homer_simpson
Fri May 23, 2003 2:02 pm


-----------------------------------
i think that he used his vector class to do that...u might wanna take a look at useful functions in tips forum

-----------------------------------
Catalyst
Fri May 23, 2003 2:34 pm


-----------------------------------
ya i used a vector class
but it can be done without
just give it coordinates (like a bullet) then move it along using the same formulas u used on the ship (thinking of it as a bullet will also help with collision detection later on)
