Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Scrolling Sprite/Physics Duplication

Author
Message
ShinyBug
9
Years of Service
User Offline
Joined: 9th Jan 2015
Location: United States
Posted: 13th May 2015 00:05
My goal is to randomly generate copies of a sprite from the top of the screen, and while its scrolling to the bottom, have another copy of it generate. I suppose it would be similar to watching cars drive down a road.

I know I've read something on using the "for" command in the generating of bullets for a shooter. After a bullet is created, its given its own physics template and left to continue, completely separate from the bullet generated after it.

I've been using this program a while but theres something about arrays and "dim" that just befuddle me. Can anyone give me a crash course or direct me to a good example? Im still not entirely sure if I'm searching for the right thing. Thanks in advance!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 14th May 2015 15:29
example


AGK 108 (B)19 + AppGameKit V2 Beta .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
ShinyBug
9
Years of Service
User Offline
Joined: 9th Jan 2015
Location: United States
Posted: 23rd May 2015 22:46
Thanks! I really appreciate it. This is exactly what I was looking for!

Login to post a reply

Server time is: 2024-11-25 22:00:44
Your offset time is: 2024-11-25 22:00:44