Page 2 of 3
Re: HOWWWWW??

Posted:
Tue Jan 13, 2009 12:22 am
by johnstone000
i already did that but there is a new glitch
if i hit SPACE three times the bullet with automatically fire 3 times every time after that....how do i fix this?
Re: HOWWWWW??

Posted:
Tue Jan 13, 2009 12:58 am
by skydereign
Okay, maybe you can post your game, because that doesn't make sense. You are saying if you shoot three times, then every shot after that will fire three projectiles?
A simple version, you can get much more complex by adding other factors, ammo, power ups, and other... This works for me, maybe you added something?
KeyDown Event (space)
-repeat disable
-Create Actor, the projectile
Create Actor (projectile actor's event)
xvelocity=5;
Re: HOWWWWW??

Posted:
Tue Jan 13, 2009 2:30 am
by johnstone000
How do I post it here?
Re: HOWWWWW??

Posted:
Tue Jan 13, 2009 2:47 am
by skydereign
You have two actors. One being your main actor, the other is the projectile. In this example I assume you can move right and left. I am also assuming you have a directional variable for you actor. This variablel is -1 when you press left, 1 when you press right. If you need this explained just ask.
Create a keydown event for the key space, set repeat to disable
Select the event create actor
Upon the creation of the projectile, the projectiles event
Set its velocity according to the main actors direction.
Create Actor->Script Editor
- Code: Select all
xvelocity=direction*5;
I could make a demo of this if you like.
Re: HOWWWWW??

Posted:
Tue Jan 13, 2009 2:50 am
by johnstone000
how do I post my game here?
Re: HOWWWWW??

Posted:
Tue Jan 13, 2009 5:26 am
by skydereign
Create an archive of it, and click the Upload attachment section on the bottom of the post a reply, and attach it.
Re: HOWWWWW??

Posted:
Tue Jan 13, 2009 6:04 am
by johnstone000
dont read this
Re: HOWWWWW??

Posted:
Tue Jan 13, 2009 6:31 am
by johnstone000
it says "the extension ged is not allowed" when i try to upload my game
???
Re: HOWWWWW??

Posted:
Tue Jan 13, 2009 7:01 am
by skydereign
You need to archive it first. It accepts .zip files and some others. Make a folder and save your game into the folder, or move the .ged and the data file into this folder, then archive it. It should accept that.
Re: HOWWWWW??

Posted:
Tue Jan 13, 2009 11:16 pm
by johnstone000
i think this worked =]
Re: HOWWWWW??

Posted:
Wed Jan 14, 2009 12:31 am
by skydereign
Okay, I figured out what was wrong. Your events are right, and the bullet is firing from the actor, but the ships animation is too big. I suggest you croping it down, so it is the size of the ship. This is what the sprite should look like. Also I suggest using pngs instead of bmps. There are several reasons why but I can't think of them now. The one I have is a png as the board won't accept a bmp. So again, you should make all of your sprites as small as possible, not extra space. That was the reason for the shooting problem.
Re: HOWWWWW??

Posted:
Wed Jan 14, 2009 12:55 am
by johnstone000
awesome tyvm!
Re: HOWWWWW??

Posted:
Wed Jan 14, 2009 1:44 am
by johnstone000
Ok I found out the kind of game I want to make...
the link for it is
http://www.kongregate.com/games/jmtb02/luminaraHow do I make my guy move like that?
Re: HOWWWWW??

Posted:
Wed Jan 14, 2009 3:11 am
by skydereign
Do you mean the accelerating? Or just the change in your animations. What do you need help with?
Re: HOWWWWW??

Posted:
Wed Jan 14, 2009 3:19 am
by johnstone000
I think just the change in the animations but im not sure