Trying to build a Space Invaders Note Identification Game
May 26, 2021
Hi everyone! I have hit a roadblock in Storyline. I'm able to move the spaceship up and down, the whole notes (offscreen on the right), move left and disappear when laser beams hit them, and the spaceship explodes if a whole note hits it. However, here are my remaining problems:
- I can't get the laser beams to shoot more than once when I tap the space bar ("key press" trigger).
- I anticipate that once I'm able to get the laser beams to shoot more than once, they'll still shoot even when the spaceship isn't touching the laser ("when object intersects" trigger).
- I may need to create conditions, like another creator did... %ShipPos% had values of L1, L2, L3, 0, R1, R2, R3, which were rectangles in the timeline, and apparently positions of the spaceship, but the rectangles did not appear onscreen but were not set to "hidden" in the timeline.
Can anyone help me? Have any of you created a game similar to this? How did you make it work? Thanks!
9 Replies
I tweaked it a bit... This uses motion paths and a random number variable. I'm able to get the whole notes to move across the screen in a random order, but don't know how to get them to repeat. There must be a way to do this because I'm able to get the lasers to shoot multiple times. The key press triggers are E, G, B, D, F, which are the 5 notes on the 5 lines of the treble clef staff.https://360.articulate.com/review/content/2c7b5adf-7be6-431e-9c47-d1488bc3d36a/review?fbclid=IwAR0-lgrwxUH7AWNEVOqFug66teeATepcNFVdvy_T8et7OpR2qAs6AbT3o68
Hi, Daniel, and welcome to E-Learning Heroes! ✨
First of all, let me say this is a fantastic idea to teach music!
I'm looking forward to what other community members will suggest for you, but it might be easier if they can see the .story file. Are you comfortable sharing it here?
I am sharing two versions of the project. Both have many issues.
There is something going on with the motion path animation not repeating because of the random number variable I attached to it. For example, if first line E moves along its motion path when RandNum = 1, it won't repeat its motion path the next time RandNum = 1. Has anyone had this issue before?
As i love creating games...i probably take a shot at this ( when time permits ). Basically i use Javascript to do things like this, so probably replacing the motion paths can make it work.
Kind regards,
Math Notermans
Hi Math, Please let me know if/when you're able to look at this. I don't have experience with javascript... perhaps I should learn it. Thanks!
Already did some work on it, then we finally got some nice weather overhere in the Netherlands, so my wife dragged me outside ;-) Continuing with it...
Hi Daniel,
This morning got the first part working nicely.
Here you can see it...
Use the arrows... up,down, left and right to move the spaceship.
Use Space to shoot... Continously if wanted.
https://360.articulate.com/review/content/91c7bc09-2205-41e1-9061-607f4f1aa2ee/review
It needs some hittesting and enemies to shoot. Will get that done one of these days when time permits and get the .story with some explanations up here..
It uses quite some complex Javascript code..so you best get started learning it. Read up on my posts and learn Javascript in combination with GSAP ( Greensocks Tweening Engine )
Kind regards,
Math
Thank you Math! I'd love to see the .story file of what you've made here. I'm still a beginner, but my big struggle is with using motion paths and random number variables together. So, I best learn Storyline better and also JS, like you suggested.