Search found 26 matches
- Mon Jan 19, 2015 6:11 pm
- Forum: Support and Development
- Topic: Death of enemy, obj. removing and other stuff (game added)
- Replies: 34
- Views: 16474
Re: Death of enemy, obj. removing and other stuff (game adde
It may give me an idea how to work my code, but there is one thing: MakeEnemy(10, 20) enemys[1]:newWaypoint(40, 50) enemys[1]:newWaypoint(0, 10) Doesn't it means I will have to know in what position in "enemys" table object is? Edit. Another thing I try to make function for starting one en...
- Mon Jan 19, 2015 9:31 am
- Forum: Support and Development
- Topic: Death of enemy, obj. removing and other stuff (game added)
- Replies: 34
- Views: 16474
Re: Death of enemy, obj. removing and other stuff (game adde
Thank you, this works. I'm slowly getting to make enemy waypoint system, so enemy could go to given positions. Enemy class have tx and ty tables, where x and y coordinates are stored. For now, when I click with my left mouse button, it adds it's x position to enemys tx table and y position to ty tab...
- Sat Jan 17, 2015 4:50 pm
- Forum: Support and Development
- Topic: Death of enemy, obj. removing and other stuff (game added)
- Replies: 34
- Views: 16474
Re: Death of enemy, obj. removing and other stuff (game adde
Thanks! I'm going to try it out. PS. It works! PS2. There is yet another thing. While this isn't some serious thing, but still noticeable: When I hold down a movement key in directions where I collide with map border and then shot, bullet shows few pixels further than a ship. ex. I go up and collide...
- Tue Jan 13, 2015 7:45 pm
- Forum: Support and Development
- Topic: Death of enemy, obj. removing and other stuff (game added)
- Replies: 34
- Views: 16474
Re: Death of enemy, obj. removing and other stuff (game adde
After some time of lazy coding I made simple shmup where you shoot at incoming enemies, nothing special. Shmup.zip Arrows: movement or up/down in menu z: shoot Esc: back to menu Enter: option choosing in menu I have two issues with game: 1. For some reason some bullets shift back few pixels, especia...
- Sun Dec 07, 2014 4:07 pm
- Forum: Support and Development
- Topic: Death of enemy, obj. removing and other stuff (game added)
- Replies: 34
- Views: 16474
Re: Death of enemy, object removing and other stuff
Thanks.
That means I will have more work than I wanted...
I guess it's time to use images and metatables.
That means I will have more work than I wanted...
I guess it's time to use images and metatables.
- Sun Dec 07, 2014 3:44 pm
- Forum: Support and Development
- Topic: Death of enemy, obj. removing and other stuff (game added)
- Replies: 34
- Views: 16474
Re: Death of enemy, object removing and other stuff
No. I said that my code works. I just don't want to use the local "hei" and use randomized number added to "h", then use that "h" in calculation. Something like this: function MakeEnemy() local Enemy =({ dead = nil, w = lvm(25,40), h = lvm(25,40) s = lvm(50,70), color1 ...
- Sun Dec 07, 2014 3:19 pm
- Forum: Support and Development
- Topic: Death of enemy, obj. removing and other stuff (game added)
- Replies: 34
- Views: 16474
Re: Death of enemy, object removing and other stuff
Nopre, I'm only using ifs here. And another question. How I can do calculation in table? function MakeEnemy() local hei = lvm(25,40) -- one thing local Enemy =({ dead = nil, w = lvm(25,40), h = hei, -- look here too s = lvm(50,70), color1 = lvm(0,255), color2 = lvm(0,255), color3 = lvm(150,255), x =...
- Sun Dec 07, 2014 12:58 pm
- Forum: Support and Development
- Topic: Death of enemy, obj. removing and other stuff (game added)
- Replies: 34
- Views: 16474
Re: Death of enemy, object removing and other stuff
Nope, I have only bullet-enemy collision for now.
When I had a key for players creating (I was toying with it), some key weren't working when I was moving diagonally (I'm using arrowkeys)
When I had a key for players creating (I was toying with it), some key weren't working when I was moving diagonally (I'm using arrowkeys)
- Sat Dec 06, 2014 9:05 pm
- Forum: Support and Development
- Topic: Death of enemy, obj. removing and other stuff (game added)
- Replies: 34
- Views: 16474
Re: Death of enemy, object removing and other stuff
Neverming about previous question, I can just use images. But I have more important one: I started doing bullet making code and I have seen that I can't shoot bullets when I'm moving diagonally, except up-right, why? How to fix it? EDIT: This is happening when I use space (" ") key to crea...
- Fri Dec 05, 2014 2:27 pm
- Forum: Support and Development
- Topic: Death of enemy, obj. removing and other stuff (game added)
- Replies: 34
- Views: 16474
Re: Death of enemy, object removing and other stuff
Thanks, I'm making super simple game now, but who know? Maybe I will make something bigger next time.
...
Is there a way to rotate these rectangles? I know it's simple with images, but what about generated stuff?
...
Is there a way to rotate these rectangles? I know it's simple with images, but what about generated stuff?