[Tutorial] Mini Game 01 -- Infinite Instantiation, Timer, and Randomization

Featured
  • Nice! I'm definitely gonna try something!

     

    Keep up the good work with lens studio 3.0!

    Comment actions Permalink
  • HI.

    I would like to thank you for your help and Tutorial.

    I'm not able to access to the file? I have an error 404 :( Access not allowed.

    Thanks

     

     

    Comment actions Permalink
  • Hi Laurent !

     

    I have updated the links, should be good now! Sorry about the inconvenience.

    Comment actions Permalink
  • Hello, thanks a lot for this tutorial. Is it possible to do the same for creating objects for the World Lens?

    Please tell me how to do this?

    Comment actions Permalink
  • Hi Lena,

    The logic for creating objects for world lens would be the same as this. You'll just need to create an object in 3D space and use getWorldPosition() instead.

     

    Happy creating!

    Comment actions Permalink
  • Thank you so much 

    Comment actions Permalink
  • HI.

    this great lesson 

    i will try to apply

    Thanks

    Comment actions Permalink
  • Hi Nico S

    you r such a good teacher...i will sure make this game in future

    try my new snap filter https://www.snapchat.com/unlock/?type=SNAPCODE&uuid=56a06aee6d14484dbf164167054892cb&metadata=01

    and please help me to be verified as i made almost 30+ 3d ar lenses and 2 games 

    ...my total views is 300 million and total snapchat play time is greater than 200+ days

    Thank You !!

    Comment actions Permalink
  • Hi Nico!

     

    Thanks for the tutorial. Can you pls explain where you apply the textures of the cookies?

     

    Thank you,

    Sara

    Comment actions Permalink
  • Hi Sara Orfali

     

    To apply texture to a Screen Image object, just click on the screen image and go to its inspector, under the Texture field just drag in any custom texture you have!

    Comment actions Permalink
  • Hai Nico

     

    Thanks for tutorial;. can u help me please?

    Script ObjectPrefab

    var currentpos = screenTransform.anchors.getCenter();

    [Scenarium] TypeError: cannot read property 'anchors' of null
    at [anon] (Script/ObjectPrefab.js:9) preventsyield

     

    Script ObjectSpawner

    var myScreenPos = screenTransform.anchors.getCenter();

    [Scenarium] TypeError: cannot read property 'anchors' of null
    at [anon] (Script/ObjectPrefab.js:9) preventsyield

     

    Thank u

    Comment actions Permalink
  • Hi 6_Kurnivan Noer Yusvianto

     

    For this error, the property screenTransform was not declared and defined so Lens Studio returns an error when you try to use screenTransform without defining it. If you add this line above that it should work:

    var screenTransform = script.getSceneObject().getComponent("Component.ScreenTransform");

    Comment actions Permalink
Have a comment?

Please sign in to leave a comment.

We're here to help! We just need a little bit of information...

What system are you using?

Have you downloaded the latest version of Lens Studio?

Please download the latest version of Lens Studio. If you still run into this issue, please come back and report it!

Is this issue causing Lens Studio to crash?

What system do you run Lens Studio on?

Version

Graphics

Follow the next steps to help us solve your issue:

  • Copy and paste this text into your TerminalCommand Window
    open ~/Library/Preferences/Snap/Lens\ Studio/ %LOCALAPPDATA%\Snap\Lens Studio Copy Text
  • Press ReturnEnter to run the command. The Lens Studio folder will automatically open
  • Prepare to upload your files: zip the "Log" Folder by right-clicking and choosing "compress."
    Locate the Log.txt file right above it.

    Attach a screenshot of the issue:

Name:

Email:

What is this most relevant to?

Please enter a brief description of your issue:

Thanks for submitting this issue.

Unfortunately, it's likely due to the operating system or hardware you're using – since they don't meet the system requirements for Lens Studio.

Still, we hear you loud and clear, and are logging the issue in case there's ever a workaround we can provide!

Minimum Requirements

Operating System: Windows 10 (64 bit); MacOS 10.11+

Hardware: Minimum of Intel Core i3 2.5Ghz or AMD Phenom II 2.6Ghz with 4 GB RAM; Intel HD Graphics 4000 / Nvidia GeForce 710 / AMD Radeon HD 6450 or better; screen resolution of 1280x768 or higher

We'll try to resolve this issue as soon as possible. Thanks for letting us know about it!

Keep an eye out for a followup email from us. We may have a couple more questions for you, or we might already have a solution to offer.

Happy creating!