HOWWWWW??

Non-platform specific questions.

Re: HOWWWWW??

Postby johnstone000 » Tue Jan 13, 2009 12:22 am

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?
johnstone000
 
Posts: 25
Joined: Sun Jan 11, 2009 7:20 am
Score: 0 Give a positive score

Re: HOWWWWW??

Postby skydereign » Tue Jan 13, 2009 12:58 am

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;
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: HOWWWWW??

Postby johnstone000 » Tue Jan 13, 2009 2:30 am

How do I post it here?
Last edited by johnstone000 on Tue Jan 13, 2009 2:45 am, edited 1 time in total.
johnstone000
 
Posts: 25
Joined: Sun Jan 11, 2009 7:20 am
Score: 0 Give a positive score

Re: HOWWWWW??

Postby skydereign » Tue Jan 13, 2009 2:47 am

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.
Last edited by skydereign on Wed Jan 14, 2009 12:45 am, edited 1 time in total.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: HOWWWWW??

Postby johnstone000 » Tue Jan 13, 2009 2:50 am

how do I post my game here?
johnstone000
 
Posts: 25
Joined: Sun Jan 11, 2009 7:20 am
Score: 0 Give a positive score

Re: HOWWWWW??

Postby skydereign » Tue Jan 13, 2009 5:26 am

Create an archive of it, and click the Upload attachment section on the bottom of the post a reply, and attach it.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: HOWWWWW??

Postby johnstone000 » Tue Jan 13, 2009 6:04 am

dont read this
Last edited by johnstone000 on Tue Jan 13, 2009 6:31 am, edited 1 time in total.
johnstone000
 
Posts: 25
Joined: Sun Jan 11, 2009 7:20 am
Score: 0 Give a positive score

Re: HOWWWWW??

Postby johnstone000 » Tue Jan 13, 2009 6:31 am

it says "the extension ged is not allowed" when i try to upload my game

???
johnstone000
 
Posts: 25
Joined: Sun Jan 11, 2009 7:20 am
Score: 0 Give a positive score

Re: HOWWWWW??

Postby skydereign » Tue Jan 13, 2009 7:01 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: HOWWWWW??

Postby johnstone000 » Tue Jan 13, 2009 11:16 pm

i think this worked =]
Attachments
First Game-not done.rar
(35.64 KiB) Downloaded 94 times
johnstone000
 
Posts: 25
Joined: Sun Jan 11, 2009 7:20 am
Score: 0 Give a positive score

Re: HOWWWWW??

Postby skydereign » Wed Jan 14, 2009 12:31 am

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.
Attachments
ship.png
ship.png (250 Bytes) Viewed 1472 times
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: HOWWWWW??

Postby johnstone000 » Wed Jan 14, 2009 12:55 am

awesome tyvm!
johnstone000
 
Posts: 25
Joined: Sun Jan 11, 2009 7:20 am
Score: 0 Give a positive score

Re: HOWWWWW??

Postby johnstone000 » Wed Jan 14, 2009 1:44 am

Ok I found out the kind of game I want to make...

the link for it is http://www.kongregate.com/games/jmtb02/luminara

How do I make my guy move like that?
johnstone000
 
Posts: 25
Joined: Sun Jan 11, 2009 7:20 am
Score: 0 Give a positive score

Re: HOWWWWW??

Postby skydereign » Wed Jan 14, 2009 3:11 am

Do you mean the accelerating? Or just the change in your animations. What do you need help with?
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: HOWWWWW??

Postby johnstone000 » Wed Jan 14, 2009 3:19 am

I think just the change in the animations but im not sure
johnstone000
 
Posts: 25
Joined: Sun Jan 11, 2009 7:20 am
Score: 0 Give a positive score

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron