Welcome Guest ( Log In | Register )

[ Big| Medium| Small] -



Post new topic Reply to topic  [ 3 posts ] 
    gamekill
  Thu Apr 12, 2012 5:34 am
Member

Hey all,

How could I populate my game's screen with several instances of a Sprite object?
Either scattered randomly or in incremental positions like 200,30 200,60 200,90 200,120..

Another problem: Say the Sprite has 3 variations of an "idle" animation. I'd like each of these spawned sprites to randomly play one of the idle anims, not all the same one.

Any help is greatly appreciated.

:sad: :wink: :crazy: :wink: :wink:


Top Top
Profile      
 

    onzephyr
  Thu Apr 12, 2012 8:01 am
User avatar
Awesome Bro

Try this .capx and see if it helps. It has contains two examples. First one creates sprites at a random location on screen and set animation to a choice at random of three. And an organized column and row version that also sets the animation to a choice at random of three. Tweaking the X and Y of the system create action can get you pretty much any organized or disorganized pattern you wish.


Example .CAPX download
Image

_________________
Image


Top Top
Profile      
 

    gamekill
  Thu Apr 12, 2012 6:09 pm
Member

Thank you so much onzephyr, it is suddenly so clear how to use the loopindex..

I will use this in my Skeletor in Space game (you can find it on the "in Development" Forum).

:dead: :biggrin: :biggrin: :smile: :grin:


Top Top
Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

We are an independent, not-for-profit game making community.
Homepage
Board Index
About Us
Downloadable Games
Free Browser Games
Games in Development
RPG Maker Support
Game Maker Support
Construct 2 Support
HBGames the eZine
Advanced RPG Maker
Site Announcements
Powered by phpBB © phpBB Group