This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#301 2012-04-19 23:50:43

elimantor
Scratcher
Registered: 2011-04-03
Posts: 76

Re: Age of Pirates Collab

*problem when i convert my new versiont o java the boat wont move e.e


scratch 2.0 forever!  big_smile

Offline

 

#302 2012-04-20 00:36:45

itsmomito
Scratcher
Registered: 2008-03-28
Posts: 100+

Re: Age of Pirates Collab

elimantor wrote:

*problem when i convert my new versiont o java the boat wont move e.e

Sorry but I suggest you make it with scratch

Offline

 

#303 2012-04-20 00:37:46

itsmomito
Scratcher
Registered: 2008-03-28
Posts: 100+

Re: Age of Pirates Collab

Meapinator101 wrote:

I think so...I'm not sure...should I make close combat mode ...how should it work?

It's okay, we already have a combat system. What we do need is some ai for the enemies, do you know how to make that? Download the latest Age of Piracy V 0.1 and check the ai code and see if you can come up with something better  smile

Offline

 

#304 2012-04-20 11:24:27

SD7
Scratcher
Registered: 2011-09-15
Posts: 100+

Re: Age of Pirates Collab

Suggestion: slow the boat down so you move like a real boat. I sort of noticed this when one of the ai ships in one of the more recent additions just came out of nowhere at lightning speed and then vanished. You should both be slow enough to have that sense of seeing the enemy boat on the horizon (the edge of the screen in the case of top-down), and then he gradually closes in on you until the two of you are in firing range.


http://img834.imageshack.us/img834/4411/signaturespacegame2.png

Offline

 

#305 2012-04-20 17:54:59

itsmomito
Scratcher
Registered: 2008-03-28
Posts: 100+

Re: Age of Pirates Collab

SD7 wrote:

Suggestion: slow the boat down so you move like a real boat. I sort of noticed this when one of the ai ships in one of the more recent additions just came out of nowhere at lightning speed and then vanished. You should both be slow enough to have that sense of seeing the enemy boat on the horizon (the edge of the screen in the case of top-down), and then he gradually closes in on you until the two of you are in firing range.

Good Idea, I actually don't get why it goes so fast. It has three different conditions with conditions under those. If the ai is within a very close range, it's supposed to turn away from the boat to angle itself to fire. If it's at a moderate range it's supposed to lock itself onto the boat's same angle and slow down to it's speed. If it's farther it should just be heading in a random direction  hmm  I'll take a look at the code

Offline

 

#306 2012-04-20 17:56:28

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Age of Pirates Collab

itsmomito wrote:

SD7 wrote:

Suggestion: slow the boat down so you move like a real boat. I sort of noticed this when one of the ai ships in one of the more recent additions just came out of nowhere at lightning speed and then vanished. You should both be slow enough to have that sense of seeing the enemy boat on the horizon (the edge of the screen in the case of top-down), and then he gradually closes in on you until the two of you are in firing range.

Good Idea, I actually don't get why it goes so fast. It has three different conditions with conditions under those. If the ai is within a very close range, it's supposed to turn away from the boat to angle itself to fire. If it's at a moderate range it's supposed to lock itself onto the boat's same angle and slow down to it's speed. If it's farther it should just be heading in a random direction  hmm  I'll take a look at the code

Wait, wait...
You have the AI finished already?


Get ready for domination of:  tongue

Offline

 

#307 2012-04-20 18:03:08

itsmomito
Scratcher
Registered: 2008-03-28
Posts: 100+

Re: Age of Pirates Collab

coolhogs wrote:

itsmomito wrote:

SD7 wrote:

Suggestion: slow the boat down so you move like a real boat. I sort of noticed this when one of the ai ships in one of the more recent additions just came out of nowhere at lightning speed and then vanished. You should both be slow enough to have that sense of seeing the enemy boat on the horizon (the edge of the screen in the case of top-down), and then he gradually closes in on you until the two of you are in firing range.

Good Idea, I actually don't get why it goes so fast. It has three different conditions with conditions under those. If the ai is within a very close range, it's supposed to turn away from the boat to angle itself to fire. If it's at a moderate range it's supposed to lock itself onto the boat's same angle and slow down to it's speed. If it's farther it should just be heading in a random direction  hmm  I'll take a look at the code

Wait, wait...
You have the AI finished already?

It's not finished, but It works ok for a basic system. The whole thing will have to be changed, because in an mmo, it will be much more efficient if the ai is done on the server. However, i think it is a good foundation for the single player Ai. It works well except that I didn't add Island Detection. I made it where if the ai runs into the island, it just ports and then departs off somewhere else. You can destroy it though, however the starting 50 cannonballs isn't enough. So you have to port and purchase some more before you take on the npc. Basically, each cannonball does 1-3 damage and you shoot 4  at a time. The Npc has about 50 Hp, if you destroy it, you gain a small amount of gold and some cannonballs. Soon, we can add more npcs and more features  smile

Note: Collision detection with the two boats wasn't put in either, I just made the basic ability to attack them

Last edited by itsmomito (2012-04-20 18:04:56)

Offline

 

#308 2012-04-20 18:04:16

itsmomito
Scratcher
Registered: 2008-03-28
Posts: 100+

Re: Age of Pirates Collab

I also added it's display on the map, i will change the map to a better one later. The red dot is the npc and you can head to it and kill it.

Offline

 

#309 2012-04-20 18:07:31

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Age of Pirates Collab

itsmomito wrote:

I also added it's display on the map, i will change the map to a better one later. The red dot is the npc and you can head to it and kill it.

Cool...
Can you upload it?


Get ready for domination of:  tongue

Offline

 

#310 2012-04-20 18:43:44

itsmomito
Scratcher
Registered: 2008-03-28
Posts: 100+

Re: Age of Pirates Collab

coolhogs wrote:

itsmomito wrote:

I also added it's display on the map, i will change the map to a better one later. The red dot is the npc and you can head to it and kill it.

Cool...
Can you upload it?

It was uploaded about a week ago lol, just not a new version  smile  Btw... I changed it to what SD7 suggested, now it doesn't turn enough. I will be making constant uploads and changes until its at least a half functional ai  smile

Last edited by itsmomito (2012-04-20 18:44:38)

Offline

 

#311 2012-04-20 18:49:06

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Age of Pirates Collab

itsmomito wrote:

coolhogs wrote:

itsmomito wrote:

I also added it's display on the map, i will change the map to a better one later. The red dot is the npc and you can head to it and kill it.

Cool...
Can you upload it?

It was uploaded about a week ago lol, just not a new version  smile  Btw... I changed it to what SD7 suggested, now it doesn't turn enough. I will be making constant uploads and changes until its at least a half functional ai  smile

oh...
:0


Get ready for domination of:  tongue

Offline

 

#312 2012-04-20 19:07:00

itsmomito
Scratcher
Registered: 2008-03-28
Posts: 100+

Re: Age of Pirates Collab

coolhogs wrote:

itsmomito wrote:

coolhogs wrote:


Cool...
Can you upload it?

It was uploaded about a week ago lol, just not a new version  smile  Btw... I changed it to what SD7 suggested, now it doesn't turn enough. I will be making constant uploads and changes until its at least a half functional ai  smile

oh...
:0

Hahaha, np. Btw, it's better now, but there is still a problem with the conditions of the ai. The only problem is that when the ships get close, they do the opposite of what i want. The Ai just moves into the player instead of away from, If i change the coding to the reverse, the enemy will be stuck and not do anything. I need to take a look at some real ai...

Offline

 

#313 2012-04-20 19:08:49

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Age of Pirates Collab

itsmomito wrote:

coolhogs wrote:

itsmomito wrote:


It was uploaded about a week ago lol, just not a new version  smile  Btw... I changed it to what SD7 suggested, now it doesn't turn enough. I will be making constant uploads and changes until its at least a half functional ai  smile

oh...
:0

Hahaha, np. Btw, it's better now, but there is still a problem with the conditions of the ai. The only problem is that when the ships get close, they do the opposite of what i want. The Ai just moves into the player instead of away from, If i change the coding to the reverse, the enemy will be stuck and not do anything. I need to take a look at some real ai...

What do you mean "real aI"


Get ready for domination of:  tongue

Offline

 

#314 2012-04-20 23:14:36

SD7
Scratcher
Registered: 2011-09-15
Posts: 100+

Re: Age of Pirates Collab

itsmomito wrote:

It was uploaded about a week ago lol, just not a new version  smile  Btw... I changed it to what SD7 suggested, now it doesn't turn enough. I will be making constant uploads and changes until its at least a half functional ai  smile

Well, old boats didn't turn on a dime...


http://img834.imageshack.us/img834/4411/signaturespacegame2.png

Offline

 

#315 2012-04-21 01:02:40

itsmomito
Scratcher
Registered: 2008-03-28
Posts: 100+

Re: Age of Pirates Collab

coolhogs wrote:

itsmomito wrote:

coolhogs wrote:


oh...
:0

Hahaha, np. Btw, it's better now, but there is still a problem with the conditions of the ai. The only problem is that when the ships get close, they do the opposite of what i want. The Ai just moves into the player instead of away from, If i change the coding to the reverse, the enemy will be stuck and not do anything. I need to take a look at some real ai...

What do you mean "real aI"

Because the ai I made doesn't compare to a professional video game ai  smile  So I just was thinking if I could take a look at how they make that ai, I could get some ideas on this one.

Offline

 

#316 2012-04-21 10:04:37

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Age of Pirates Collab

itsmomito wrote:

coolhogs wrote:

itsmomito wrote:


Hahaha, np. Btw, it's better now, but there is still a problem with the conditions of the ai. The only problem is that when the ships get close, they do the opposite of what i want. The Ai just moves into the player instead of away from, If i change the coding to the reverse, the enemy will be stuck and not do anything. I need to take a look at some real ai...

What do you mean "real aI"

Because the ai I made doesn't compare to a professional video game ai  smile  So I just was thinking if I could take a look at how they make that ai, I could get some ideas on this one.

How would you do that?
Take a video game apart?!


Get ready for domination of:  tongue

Offline

 

#317 2012-04-21 10:29:53

SD7
Scratcher
Registered: 2011-09-15
Posts: 100+

Re: Age of Pirates Collab

Uh.... that's do-able. How do you think they make mods for Skyrim and Crysis? You go into the game source files and muck around with them. I have no idea how to mod, but that's the basic gist of it.


http://img834.imageshack.us/img834/4411/signaturespacegame2.png

Offline

 

#318 2012-04-21 11:22:01

itsmomito
Scratcher
Registered: 2008-03-28
Posts: 100+

Re: Age of Pirates Collab

Yeah, I think the old Sid Meier's Pirates Game from 1997 or something is open code  smile

Offline

 

#319 2012-04-21 11:35:45

Meapinator101
Scratcher
Registered: 2012-02-03
Posts: 1000+

Re: Age of Pirates Collab

thats really cool...we could do that


http://i.imgur.com/QR1fV.png

Offline

 

#320 2012-04-22 11:33:47

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Age of Pirates Collab

The algorithms aren't too hard. For example, if you make a pong game, an AI could go like this: if ball is on my side of the screen, check if the ball is above or below me. Move in that direction.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#321 2012-04-22 12:12:58

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Age of Pirates Collab

Everybody's assignment: find beatable AI in a project and show it to us.


Get ready for domination of:  tongue

Offline

 

#322 2012-04-22 12:49:37

itsmomito
Scratcher
Registered: 2008-03-28
Posts: 100+

Re: Age of Pirates Collab

bobbybee wrote:

The algorithms aren't too hard. For example, if you make a pong game, an AI could go like this: if ball is on my side of the screen, check if the ball is above or below me. Move in that direction.

Yes but what happens when you need to put in the detection with islands? How would you do that?

Offline

 

#323 2012-04-22 12:52:57

itsmomito
Scratcher
Registered: 2008-03-28
Posts: 100+

Re: Age of Pirates Collab

coolhogs wrote:

Everybody's assignment: find beatable AI in a project and show it to us.

Hahaha ok, I know many, but they won't help us much. I think i got the ai fine now, just need to add the detection against the islands. And also fix the cannonball firing so that they fire straight in a row of 4

Offline

 

#324 2012-04-22 19:24:19

itsmomito
Scratcher
Registered: 2008-03-28
Posts: 100+

Re: Age of Pirates Collab

Hey Guys! I'm about ready to make the Pub and Shipyard, for that I will be needing some sprites. For the pub, it should be a pub background with several pirate characters. Kind of like this: http://www.cdrinfo.com/Sections/Article … _large.jpg but with three or four bigger sized characters that are separate sprites. For the shipyard, we will just need a side view of the ship sprites we are making and that is pretty much all. If any artists can do this, then thanks a lot!

Offline

 

#325 2012-04-22 20:00:31

Meapinator101
Scratcher
Registered: 2012-02-03
Posts: 1000+

Re: Age of Pirates Collab

it would be cool if you used my characters!!


http://i.imgur.com/QR1fV.png

Offline

 

Board footer