creating animated Tiled Backgrounds

Get help using Construct 2

Post » Wed Jun 27, 2012 12:03 am

Helpful, thankyou! I think I am going to try Yann's suggestion first to avoid additional plugins, but if if I am unsucessful this is a great plan-b!

Edit:

Setup Yann's suggestion, and it works like a charm! A tiny extra bit of setup compared to an animated sprite, but the results are ideal and controllbe. Wonderful! Greg2012-06-29 00:51:57
B
9
Posts: 59
Reputation: 997

Post » Tue Feb 12, 2013 3:34 pm

Hello !

I'm stuck with that code :

Global number speed = 5 //frame by second
Global number t=0 //timer variable
Global number frameCount=3 //number of "frame" for the effect
Every tick
-> add to t speed*dt
-> tiledbg1: set invisible
-> tiledbg2: set invisible
-> tiledbg3: set invisible
int(t)%frameCount = 0
-> tiledbg1: set visible
int(t)%frameCount = 1
-> tiledbg2: set visible
int(t)%frameCount = 2
-> tiledbg3: set visible

In fact (i'm new on C2), i don't know how to enter "int(t)%frameCount", because if i go to system, compare variable (global), i can't select something different than the name of the global variables.
I miss probably something very easy :)

EDIT:
I've done it with the family version, more easy for me to understand and do :).
Thanks a lot it works very well ! goldentreee2013-02-14 12:43:51
B
11
S
6
G
2
Posts: 105
Reputation: 3,910

Post » Tue Sep 08, 2015 3:18 pm

Here is my implementation of @Yann 's solution.

https://drive.google.com/open?id=0B-xiq ... kkxT1ZZS0k (r206)
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
17
S
5
G
1
Posts: 1,119
Reputation: 3,991

Previous

Return to How do I....?

Who is online

Users browsing this forum: TELLES0808 and 12 guests