Help the NEWBIE

Get help using Construct 2

Post » Wed Mar 20, 2013 6:34 pm

HELLO

I'M NEW TO CONSTRUCT 2. I AM CURRENTLY MAKING A GAME BUT I'M STUCK.

IN MY GAME, I HAVE A SPRITE WITH 30 FRAMES
I NEED 8 RANDOM FRAMES TO APPEAR EVERY 2 SECONDS
AND I NEED THEM TO MOVE DOWNWARDS EVERY 2 SECONDS LIKE TETRIS
I ALSO NEED TO RETRIEVE INFORMATION FROM EACH FRAME.. LIKE THE ICON DISPLAYED ON IT
SO THAT I CAN MATCH THEM UP..
I KNOW I NEED TO USE AN ARRAY, BUT I DONT KNOW HOW TO
AND THE TUTORIAL WAS A LITTLE HELPFUL, BUT NOT REALLY ABSOLUTE

NEED HELP PLEASE
B
3
Posts: 9
Reputation: 443

Post » Sun Mar 31, 2013 3:19 pm

- the random rames:
add an event: Every 2 Seconds set frame (of your sprite) to 30-random(31)
.. set frame to 30-random(31) will choose a frame between 0 and 30.

- downward movement:
add an event: every 2 seconds set Y to self.Y +50
.. set Y to self.Y +50 will move your sprite 50 pixel downwards every 2 seconds.

does that anser your question?

here's a quick demo i created .. keep in mind that i just used different colours for the animation frame.

https://www.dropbox.com/s/4y7gri2uj0clxm5/demo4cubits12x.capx
B
23
S
6
G
5
Posts: 132
Reputation: 4,487

Post » Mon Jun 17, 2013 4:26 pm

Thanks a lot.
whew!
B
3
Posts: 9
Reputation: 443


Return to How do I....?

Who is online

Users browsing this forum: austinblackbelt, Matthew de, Skebab and 6 guests