playMaker

Author Topic: Spawning a gameobject randomly on screenview  (Read 1804 times)

engnyksl

  • Playmaker Newbie
  • *
  • Posts: 2
Spawning a gameobject randomly on screenview
« on: October 28, 2015, 12:37:19 PM »
Hello guys,

I've been developing a 2d endless scrolling game. (I guess Ican call it "sidescroller" but it goes upwards.) I want to spawn some coins on random x and y axis positions and I managed it but they're of screen (camera frustrum.) What can I do to spawn them on screen as the camera moves upwards?

Thanks in advance.

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Spawning a gameobject randomly on screenview
« Reply #1 on: November 06, 2015, 07:59:26 AM »
have you tried this http://hutonggames.com/playmakerforum/index.php?topic=925.msg3806#msg3806

or/and the random Vector3 action
 
« Last Edit: November 06, 2015, 08:10:17 AM by dudebxl »