Announcement

Collapse
No announcement yet.

Trying to make Oscilloscope type of mechanic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trying to make Oscilloscope type of mechanic

    Hi I'm trying to make a game mechanic that is in essence a matching oscilloscope sound mechanic. Not sure where to begin but I would like the user to be able to visually see a sine wave on a screen. Then having another screen that they can manipulate (using analog sticks) another sine wave on that screen, in order for them to match, once matched it then would trigger an event. Anyone that could help or possibly point me in the direction to a tutorial of something similar that would be greatly appreciated.

    #2
    I'm not a material expert, but I a few years back I did something like this (the gaps are because the of texture I used):

    Click image for larger version  Name:	1.png Views:	0 Size:	379.8 KB ID:	1737296


    I started with a sin wave texture:


    Click image for larger version  Name:	2.png Views:	0 Size:	71.2 KB ID:	1737295


    Then I created the material with the sin wave I wanted:

    Click image for larger version  Name:	3.png Views:	0 Size:	96.2 KB ID:	1737293



    And then another material with parameters to allow me to change the wave (period and speed) in BP:

    Click image for larger version  Name:	4.png Views:	0 Size:	144.8 KB ID:	1737294


    Maybe there is a way to generate a sin wave without a texture, but I was in a hurry and didn't have time to delve into materials.
    Last edited by EvilCleric; 03-26-2020, 10:42 AM.
    "I have harnessed the shadows that stride from world to world to sow death and madness."

    Comment

    Working...
    X