cant make my player fire in the direction the is aiming

Talk about making games.

Postby d-soldier » Fri May 25, 2007 2:12 pm

Yep, I didnt review the quote very well... sorry about that. The draw actor script for the player, change the "dir" to "DIR". Scripting is sensative to captial letters, so by not having something written the right way will cause problems, which is why i try to have everything in lowercase.
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby Sgt. Sparky » Fri May 25, 2007 5:50 pm

xD
Yar!
I thought he was using seperate variables! :P :lol: :lol:

et boi 'ard unnerstannin' eee. :P
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 saabian » Fri Jun 08, 2007 8:28 am

hi again! well thanks now it finally work unfortunatly not to 100%...

I did everything as i did before but insted of writeing "dir" i wrote "DIR".
Before the game didnt start when i pressed the "game mode" button, now it does but nothing really happens in the game.

To be100% shure that the new script would work i delated all of my old scripts like move actor with arrow keys (x = x + 5; etc) and i also had to delate my draw bullet actor script (key down "ctrl"/ script editor y = y + 5) because that would only make the actor bullet move in one direction.

i also change in the script you gave med "KEY_DOWN" to "2" and KEY_UP to "8" etc...

I guess i need to use the old script again to move the player, right?

and any script ideas of how to create the bullet? beacause now i dont have any script so nothing happens when i press ctrl :P

thanks again :)
User avatar
saabian
 
Posts: 25
Joined: Sat Dec 09, 2006 1:27 pm
Location: Gothenburg => Sweden
Score: 0 Give a positive score

Postby Sgt. Sparky » Sun Jun 10, 2007 3:27 pm

http://game-editor.com/forum/viewtopic. ... 0822#20822
I made a Demo with Equiping Guns and shooting. :D
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 saabian » Sun Jun 10, 2007 4:50 pm

thx, but seems to be some kind of problem. i downloded your game, extract it and opend it in GE but in ge a litle message-window says "This is not a valid file for this Game Editor version please, download last version in http://www.game-editor.com"

This thing has happened before, how do i get past this bug(?) ?
User avatar
saabian
 
Posts: 25
Joined: Sat Dec 09, 2006 1:27 pm
Location: Gothenburg => Sweden
Score: 0 Give a positive score

Postby makslane » Sun Jun 10, 2007 5:00 pm

You need download the last Game Editor version!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Previous

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron