Page 1 of 3

how do i rotate things?

PostPosted: Sat Nov 04, 2006 11:24 pm
by Sgt. Sparky
even though i know alot about Game Editor there is still alot i do not know, like how do i make objects rotate? lets say i have a guy standidng on the ground there is an object above him, how do i make him rotate to shoot at that object, and how do i make him shoot at angles, i know how to make the bullet but the vital thing for me is to know how to rotate things. thank you if u do post anything

PostPosted: Sun Nov 05, 2006 12:09 am
by Hedfone
the only way to rotate things (in this version of GE, anyways) is to make multiple sprites of each angle.
sorry. :)

PostPosted: Sun Nov 05, 2006 12:15 am
by Sgt. Sparky
bah! :evil: i found that out a few seconds before u posted this. but i have probs making the animations of the top actor look good with the animations of the bottom actor i will try to make the bottom animation look better, but thanks for saying that anyways. :wink:

PostPosted: Sun Nov 05, 2006 11:03 pm
by Hedfone
no problem :)

PostPosted: Mon Nov 06, 2006 6:48 pm
by Sgt. Sparky
is there anyway to make object rotate(like change animations to the rotated ones) when i use the arrow keys, like to make an astriods game, cus that would be very helpful in a game i am working on
here is a picture of the guy that will be holding the gun:Image but it is an unfinished animation

PostPosted: Mon Nov 06, 2006 6:50 pm
by Sgt. Sparky
post soon on the code for that please
Edit: and how do you use the angel function?

PostPosted: Tue Nov 07, 2006 12:19 am
by Hedfone
not so sure about the code for a keydown event (i usually use a folowmouse) but I think it's something like animpos(nframes) +=1; and angle+= whatever increment your animation is.
sorry, but I'm really not so sure.
look at the "asteroids" demo on the homepage for a more in-depth response :D

http://game-editor.com/games/asteroids.zip

PostPosted: Tue Nov 07, 2006 12:29 am
by Sgt. Sparky
bah! all i get is file load error could not load "explosion.bmp" and i have trouble with that angle function stuff

PostPosted: Tue Nov 07, 2006 12:32 am
by Hedfone
hmmm,
for the simple sake of experimentation, just save a file in the 'data' folder called explosion.bmp
then it should load ok

PostPosted: Tue Nov 07, 2006 12:34 am
by Sgt. Sparky
argh, i do not know howq to seperate that folder.

PostPosted: Tue Nov 07, 2006 12:43 am
by Hedfone
(these pertain to Windows' default Unzipper Program. If you're using something like Winzip, just right click the .zip file, go to 'open with' and click 'compressed (zipped) folders' to use the deafult windows unzipper program :P )

-unzip the folder
-a new window pops up with the unzipped folder
-it'll have a name like 'asteroids'
-double click to open it-
-there will be a 'data folder and a GED file
-open paint and save a random picture into the data folder under the name 'explosion.bmp'
-open the GED file and it SHOULD work perfectly


hope this has helped :)

PostPosted: Tue Nov 07, 2006 12:45 am
by Sgt. Sparky
thank you, but still, how do ya use the "angle" function? i have tried with no luck
Edit: wahahahaha! the stupid file will STILL not open! :evil: argh!!! *calms down* hey, could you open it and tell me the script for the rotating, :lol:

PostPosted: Tue Nov 07, 2006 1:03 am
by Hedfone
any other day I'd do it in a second, but my trial ran out yesterday ( :cry: ) and I can't open it :( . sorry. If you can wait a day or two I can get another trial off of my friends computer maybe and open it then.
ok?

PostPosted: Tue Nov 07, 2006 1:06 am
by Sgt. Sparky
y don't u just buy the program? the cheapest packedge is $14.95 and unlimited. plz buy it

PostPosted: Tue Nov 07, 2006 1:18 am
by Hedfone
on my computer it says that the sheapest is 24$...
am I wrong?
if it's 14$ i'm TOTALLY buying it :D

EDIT: yeah, it says it's 24$. Sorry man, payday's on friday :D

EDITx2: oh! and I forgot to mention! Love that character of yours. very cool :lol: