how do i rotate things?

Game Editor comments and discussion.

how do i rotate things?

Postby Sgt. Sparky » Sat Nov 04, 2006 11:24 pm

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
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Hedfone » Sun Nov 05, 2006 12:09 am

the only way to rotate things (in this version of GE, anyways) is to make multiple sprites of each angle.
sorry. :)
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby Sgt. Sparky » Sun Nov 05, 2006 12:15 am

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:
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Hedfone » Sun Nov 05, 2006 11:03 pm

no problem :)
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby Sgt. Sparky » Mon Nov 06, 2006 6:48 pm

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
Last edited by Sgt. Sparky on Mon Nov 06, 2006 6:51 pm, edited 2 times in total.
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Sgt. Sparky » Mon Nov 06, 2006 6:50 pm

post soon on the code for that please
Edit: and how do you use the angel function?
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Hedfone » Tue Nov 07, 2006 12:19 am

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
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby Sgt. Sparky » Tue Nov 07, 2006 12:29 am

bah! all i get is file load error could not load "explosion.bmp" and i have trouble with that angle function stuff
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Hedfone » Tue Nov 07, 2006 12:32 am

hmmm,
for the simple sake of experimentation, just save a file in the 'data' folder called explosion.bmp
then it should load ok
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby Sgt. Sparky » Tue Nov 07, 2006 12:34 am

argh, i do not know howq to seperate that folder.
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Hedfone » Tue Nov 07, 2006 12:43 am

(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 :)
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby Sgt. Sparky » Tue Nov 07, 2006 12:45 am

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:
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Hedfone » Tue Nov 07, 2006 1:03 am

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?
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby Sgt. Sparky » Tue Nov 07, 2006 1:06 am

y don't u just buy the program? the cheapest packedge is $14.95 and unlimited. plz buy it
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Hedfone » Tue Nov 07, 2006 1:18 am

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:
Last edited by Hedfone on Tue Nov 07, 2006 1:24 am, edited 2 times in total.
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Next

Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron