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
Daniel Lindey

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

Daniel Lindey

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?

Math Notermans

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