TSO Game Plan. Warm up.

Talk about making games.

Re: TSO Game Plan. Warm up.

Postby TSO » Tue Sep 28, 2010 12:37 am

EDIT: edit post by mistake... just erase it all...
Last edited by TSO on Tue Oct 12, 2010 4:41 pm, edited 2 times in total.
TSO
 
Posts: 87
Joined: Thu Sep 02, 2010 5:53 pm
Score: 4 Give a positive score

Re: TSO Game Plan. Warm up.

Postby zxcvbnm » Tue Sep 28, 2010 5:02 am

Ok you want the timer to count down backwards properly right. Here you go , it starts at 100 and counts down. If you need futher explaination on how this works , just let me know. You did the code right , but have to add commands in the create actor. If you got this down pat , we will go on to the next problem. Dont worry about the animations in the data folder , thier from another game Iam working on.
Attachments
Untitled.zip
(1.52 MiB) Downloaded 72 times
Check out Momo AlienStarcatcher , featured in apples new and noteworthy and has 5 star reviews!!!
http://itunes.apple.com/us/app/momo-ali ... 61779?mt=8
zxcvbnm
 
Posts: 248
Joined: Sun Aug 22, 2010 7:57 pm
Score: 10 Give a positive score

Re: TSO Game Plan. Warm up.

Postby TSO » Tue Sep 28, 2010 1:58 pm

I know how to add and subtract from counter.
I just don't know how to enforce conditions for adding and subtracting.
I added your extra lines of code in create actor but the same problem still happens.
TSO
 
Posts: 87
Joined: Thu Sep 02, 2010 5:53 pm
Score: 4 Give a positive score

Re: TSO Game Plan. Warm up.

Postby TSO » Tue Sep 28, 2010 3:04 pm

nvm I just changed it to 300 seconds which adds up to 5 minutes. Lazy way out.
TSO
 
Posts: 87
Joined: Thu Sep 02, 2010 5:53 pm
Score: 4 Give a positive score

Re: TSO Game Plan. Warm up.

Postby TSO » Wed Sep 29, 2010 3:59 pm

So random number generators...
TSO
 
Posts: 87
Joined: Thu Sep 02, 2010 5:53 pm
Score: 4 Give a positive score

Re: TSO Game Plan. Warm up.

Postby TSO » Thu Sep 30, 2010 3:25 pm

So with some trial and error I got some random code to work to randomly drop a powerup when enemies die.

Code: Select all
power = rand(2);
if (power!=1)
{
  power = rand (2);
  if (power!=1)
  {
    power = rand(2);
    if (power!=1)
    {
     CreateActor("PuPDoubleShot", "Harp", "(none)", "(none)", 0, 0, false);
    }
  }
}


It seems kinda over done with if statements but in testing it's only thing that actually worked properly.
out of like 10 games it fires off maybe twice at most.

I tried a much shorter code.

Code: Select all
power = rand (10);
if (power=1)
{
 createactor
}


switch with things like if (power!=1) and the results was if statement always firing...
Annoying...
TSO
 
Posts: 87
Joined: Thu Sep 02, 2010 5:53 pm
Score: 4 Give a positive score

Re: TSO Game Plan. Warm up.

Postby lcl » Thu Sep 30, 2010 4:14 pm

TSO wrote:I tried a much shorter code.

Code: Select all
power = rand (10);
if (power=1)
{
 createactor
}


switch with things like if (power!=1) and the results was if statement always firing...
Annoying...


TSO, your code has problem. You wrote it so that it always makes power equal to 1. You have to write:
Code: Select all
power = rand (10);
if (power==1) //See this line!!
{
 createactor
}


And, you see that != means not equal to and == means equal to. :D
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: TSO Game Plan. Warm up.

Postby TSO » Thu Sep 30, 2010 6:23 pm

damn... I must not be paying attention...
gotta retrace steps to check for more errors...
TSO
 
Posts: 87
Joined: Thu Sep 02, 2010 5:53 pm
Score: 4 Give a positive score

Re: TSO Game Plan. Warm up.

Postby TSO » Fri Oct 01, 2010 5:03 pm

I spam left ctrl
Animation spams until the shot is fired.
How do I stop animation from firing until actual shot is fired?
Attachments
lvl1.zip
(1.33 MiB) Downloaded 62 times
TSO
 
Posts: 87
Joined: Thu Sep 02, 2010 5:53 pm
Score: 4 Give a positive score

Re: TSO Game Plan. Warm up.

Postby TSO » Mon Oct 04, 2010 12:06 am

There another file type for animations other then GIF GE accepts?
What are the animation methods it can use? I noticed the tiles and health bars animate or semi-animate. and a quickly drew one my self in the method. But what if something has a lot of frames? There a program or a function in graphics gale anyone knows?
TSO
 
Posts: 87
Joined: Thu Sep 02, 2010 5:53 pm
Score: 4 Give a positive score

Re: TSO Game Plan. Warm up.

Postby TSO » Mon Oct 04, 2010 12:11 am

Also can anyone find the problem with my image?
I already drew one that turned out perfectly and even modified it to be wider and two bullets side by side in the animation instead. and it turns out fine.
But this is the 2nd time I've redrawn and entirely re-animated this image and these black outlines GE keeps showing only got worse.
Attachments
BulletUpL.gif
BulletUpL.gif (6.72 KiB) Viewed 1677 times
TSO
 
Posts: 87
Joined: Thu Sep 02, 2010 5:53 pm
Score: 4 Give a positive score

Re: TSO Game Plan. Warm up.

Postby zxcvbnm » Mon Oct 04, 2010 3:51 am

You can use PNG format also. For animations lets say you draw a man walking in PNG. You can name each file man11,man2, and man3. Game Editor wil put the animations in the order that you selected.
Check out Momo AlienStarcatcher , featured in apples new and noteworthy and has 5 star reviews!!!
http://itunes.apple.com/us/app/momo-ali ... 61779?mt=8
zxcvbnm
 
Posts: 248
Joined: Sun Aug 22, 2010 7:57 pm
Score: 10 Give a positive score

Re: TSO Game Plan. Warm up.

Postby DilloDude » Mon Oct 04, 2010 4:34 am

Or have all the frame in one image, or sprite sheet.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Re: TSO Game Plan. Warm up.

Postby TSO » Mon Oct 04, 2010 2:55 pm

sprite sheet that was the word I was looking for.
I got a lot of frames so making a sprite sheet by hand would be rather time consuming.
I'll try the PNG method. maybe that file type works best...
TSO
 
Posts: 87
Joined: Thu Sep 02, 2010 5:53 pm
Score: 4 Give a positive score

Re: TSO Game Plan. Warm up.

Postby TSO » Mon Oct 04, 2010 3:00 pm

odd... I had multiple jpeg files left over and tried the multi-file select in GE. Image was alright but the white showed up in background still... need it transparent.

Tried same thing with PNG and I get these random black lines through the graphic again...
TSO
 
Posts: 87
Joined: Thu Sep 02, 2010 5:53 pm
Score: 4 Give a positive score

PreviousNext

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest