Skip to main content
magdah59927511
Participating Frequently
February 17, 2020
Question

Naval Game

  • February 17, 2020
  • 3 replies
  • 1859 views

We have a lesson with a swf file (we do not have the original files for this swf) that plays a Naval Battle game.
Since we are transitioning to HTML5 we are in process of making changes. In this lesson one player calls out a number and a letter and the opposing player lets him/her know if was a hit or not. As this happens questions are asked and answered (in the screen). For instance, I ask you a question and if you do not answer it correctly, I will shot and you let me know if I hit one of your boats or not. 
I was looking and reading everything I found online about simulations in captivate (mine is  8  and so far I have no idea how should I do this simulation/game.
Has anyone ever done anything similar?
Can anyone give me some ideas on how to get this done?

I appreciate it.
Maggie.

This topic has been closed for replies.

3 replies

Participant
January 2, 2024

 

Are you essentially designing a game similar to Stratego? I'm confident this can be accomplished. My recommendation would be to start by outlining your logic and then proceed to create all of your actions

I'm not certain about the process for entering your callouts using numbers and letters, but it shouldn't be overly challenging—just a matter of executing multiple actions.

Lilybiri
Legend
February 18, 2020

Have several games on my blog, developed essentially with advanced/shared actions. It is not totally clear to me: how do you handle the two-player approach? 

Inspiring
March 12, 2020

For the two player question I would take a vu into https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest

magdah59927511
Participating Frequently
March 12, 2020

Will do. Thank you.
I don't think I can use this. Consideing the HTML limitations.
I have to transfer all of this to HTML5, if there are limitations, it won't work, since "To discourage the synchronous use of XMLHttpRequest, ...."
Besides, I don't know where in Captivate would I put all of that code.
I do appreciate your input though.

TLCMediaDesign
Inspiring
February 18, 2020

So basically you are creating the game Stratego?

 

I'm sure this could be creted. My suggestion would be to first map out your logic, then create all of you advanced actions.

 

Not sure how your callouts are entered as far as the number and letter, but it shouldn't be too difficult, just a lot of actions.

Stagprime2687219
Legend
February 18, 2020

I was thinking it was Battleship but was struggling with the "two player" aspect of it. Seems like it would have to be a random NPC or something that checks against some set values.

TLCMediaDesign
Inspiring
February 18, 2020

You're right, it was battleship.

 

It would be pretty simple to set up a grip with smartshapes that when clicked, turn transparent and reveal either water or parts of a ship. This could be done with a simple dynamic script that compares what was slicked to a varible to hold the correct answer commas delimited.