playMaker

Author Topic: Random Object[SOLVED]  (Read 2307 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Random Object[SOLVED]
« on: September 04, 2013, 07:20:33 AM »
Hi!
I want to make some items coming down the screen with extra life, power ups, etc.
But I want it to pick a random object. For example between 10 - 30 sec. A random item will come down the screen. I try to figure out how to do it, but I'm stuck.
Is it possible to get some help with this?
« Last Edit: September 11, 2013, 03:54:11 AM by jeanfabre »
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Random Object
« Reply #1 on: September 04, 2013, 07:37:40 AM »
Have you tried to use the select random gameObject action?

bizilux

  • Full Member
  • ***
  • Posts: 171
Re: Random Object
« Reply #2 on: September 04, 2013, 07:47:14 AM »
this is the backbone of my whole game. it basically spawns zombies at 5 different spawn points, based on time elapsed, first it spawns only zombies at 1-5 sec intervals, for first 20 seconds (initial spawn pattern), then as time passes by, intervals get shorter and other harder zombie types start to spawn...

i think its  self explanatory from screenshots, but ask if you need anything...

PS: im really proud of that shit :)






« Last Edit: September 04, 2013, 07:51:07 AM by bizilux »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Random Object
« Reply #3 on: September 04, 2013, 07:48:40 AM »
Here is a very simple way to go about it.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

bizilux

  • Full Member
  • ***
  • Posts: 171
Re: Random Object
« Reply #4 on: September 04, 2013, 08:01:45 AM »
yep that gets the job done too... a bit simplified with not so many "features" but yeh works too

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Random Object
« Reply #5 on: September 04, 2013, 08:47:12 AM »
Lane: Your example was exactly what I need! Thank you! :)

bizilux: Thank you for the screenshots! I will take a look at this also! Maybe I can use it for more advanced random!

LampRabbit: No! I haven't tried that! But now I got this example! :)

Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no