Thank you for the reply Jonez, you are absolutely right, I will start all over with the examples you guys gave me here and thru the CoolBasic examples too, and then if the mistake continues i will open a new post with the proper questions.
Thanks ans sorry for the abuse.
Search found 30 matches
- Sun Aug 21, 2011 10:19 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
- Sun Aug 21, 2011 6:16 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
Any idea guys?
Thanks
Thanks
- Wed Aug 17, 2011 8:29 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
I´m desperate because i have tried almost everything ans for some reason everything goes wrong, i´m confused a lot with this, where is my code, if any of you guys can point where in the code i´m doing it bad? SCREEN 640, 480, cbsizable FrameLimit 60 Type ENEMIES Field obj Field health As Integer End...
- Wed Aug 17, 2011 3:27 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
Better and faster now, the other problem now is the enemies shooting part. my code for enemies shooting: [code] For newenemie.ENEMIES = Each ENEMIES ' PointObject newenemie\obj, ship MoveObject newenemie\obj, -0.5 decreasehealth = False If decreasehealth = False Then enemiebullet.ENEMBULLETS=new(ENE...
- Tue Aug 16, 2011 10:38 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
EDIT: You can also use the ScreenPositionObject-command to position the newly created enemies according to screen coordinates. I'd use those CameraX() and CameraY() -functions, though. Use this functions instead of PositionObject newenemie\obj, Rand(-500,500),Rand(-450,450) and this? PositionObject...
- Tue Aug 16, 2011 10:32 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
Once again back on the fire part, once again nothing works lol, here is my code for the enemies fire, don´t know what else should i do maybe the function parts would be nice to work on. For newenemie.ENEMIES = Each ENEMIES ' PointObject newenemie\obj, ship MoveObject newenemie\obj, -0.5 decreaseheal...
- Tue Aug 16, 2011 10:10 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
Well i have changed some little code and here is the result, the enemies are scrolling to the left now. 'game space shooting SCREEN 640, 480, cbsizable FrameLimit 60 Type ENEMIES Field obj Field health As Integer End Type Type BULLETS Field obj End Type Type ENEMBULLETS Field obj End Type Gosub load...
- Fri Aug 12, 2011 11:27 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
Use Distance2()-function to get the distance between the player and the enemies. If too far, the enemies won't point to the player nor shoot, but wander aimlessly (or by waypoints if you prefer). Make an additional field for the enemies, called reload. Reload is reduced by one in each frame, and wh...
- Thu Aug 11, 2011 6:35 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
Update a little the game, still not working the shooting part correctly so i decided to disable for now, i changed the enemies sprites and add some text with number of lives but now i don´t know were to start decreasing the lives when the enemies ships collide with the main one, can anybody :P help ...
- Wed Aug 10, 2011 4:23 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
Any idea guys?
Anything will be appreciated.
thank you
Anything will be appreciated.
thank you
- Tue Aug 09, 2011 3:02 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
I was able to make the enemies to fire but impossible to win such a game...lol And the game starts to be slow Any ideas from you masters? Should i put the enemies moving forward and shout them, i´m lost can you guys help me on the right direction? Thank you 'game space shooting SCREEN 640, 480, cbsi...
- Tue Aug 09, 2011 2:35 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
So I must create a new type like so?
Code: Select all
type ENEMBULLET
Field obj
EndType
- Tue Aug 09, 2011 2:15 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
I have tried several things, but with no luck , i have to put every single enemies shooting the ship, i must do a function and update the enemies but don´t know how to.
If a nice soul could give a little help i would appreciate.
Thank you
If a nice soul could give a little help i would appreciate.
Thank you
- Mon Aug 08, 2011 5:08 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
A little update with explosion and fire sound, i also put a little explosion sprite but don´t know very well how to put her in every enemies exploding. And i know the coordinates now. 'game space shooting SCREEN 640, 480, cbsizable FrameLimit 40 Type ENEMIES Field obj Field health As Integer End Typ...
- Mon Aug 08, 2011 12:47 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
Thank you for the explanation, i will study a little to get everything right.
Just one more thing, if you have a 640 by 480 window how coordinates x an y are represented?
Just one more thing, if you have a 640 by 480 window how coordinates x an y are represented?
- Sat Aug 06, 2011 11:14 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
Thank you for the help, if you could explain a little between my code and yours i´d be glad, thank you.
How did you put the bullet firing in the same direction?
By the way the enemies are coming to the ship and they are piling each other.
Thank you
How did you put the bullet firing in the same direction?
By the way the enemies are coming to the ship and they are piling each other.
Thank you
- Sat Aug 06, 2011 12:58 am
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
I have Updated the code, now it contain a bullet, well i´m reading the manual of each command and adapting the code example on it. I have 2 problems: The enemies are disappearing by them selves, i think if they move forward the game was more interesting (i think), and i need the bullet to be the sam...
- Fri Aug 05, 2011 11:34 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
My code so far, next to it is attached the files so you can see what´s is going one: The enemie are killing them selves lol, now to be a very basic noob game is puting the collision on the bullets and the explosion sound and sprite. :D 'game space shooting SCREEN 640, 480, cbsizable SetWindow "...
- Fri Aug 05, 2011 9:15 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
Thanks, which software do you use for make them?
I know that website, but you could know a good resource that gives that for nothing.
By the way to place enemies in the game you call object like the main ship right?
Thanks
I know that website, but you could know a good resource that gives that for nothing.
By the way to place enemies in the game you call object like the main ship right?
Thanks
- Fri Aug 05, 2011 5:24 pm
- Forum: Problems
- Topic: Moving the background
- Replies: 38
- Views: 46001
Re: Moving the background
Thank you, i´ll continue to develop the game and enjoy your help, knows where to get free maps and sprites on the web?