Great idea for a plugin

Post your completed addons to share with the community

Post » Sun Jun 24, 2012 5:32 am

I cant create any plugins, but it would be an awesome idea and great time and space release on the event sheet, if we could do a event like this:

Example.

I want to create lots of levels but i am bored to put, *if he collides with door go to layout 2,3,4,5,6 etc (for the levels)

so i create an event:

HERO(my character)>on collision with door - System>go to NEXT layout(with the order i gave the layouts by dragging them on the projects,layout) folder .


So every time my hero goes to a door it brings him to the next level automatically..

What do you say guys? any experts can create this?zoniq2012-06-24 05:34:42
B
6
Posts: 29
Reputation: 408

Post » Sun Jun 24, 2012 6:54 am

Name the layouts like "level1", "level2" and so on. Add a variable to the door called id.

- On collision with door
> go to layout ("level" & door.id)

You just need to set the id to the number of the next level
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Sun Jun 24, 2012 7:23 am

i thought something else, cant i do an event saying.

everytime hero collide to door - +1 to id
                               - go to layout id=layout number

.............

or something like this, so if i pass everytime the door the id goes +1 and i go to the next level.
B
6
Posts: 29
Reputation: 408

Post » Sun Jun 24, 2012 7:24 am

Sure, but instead of Layout id (doesn't exist) you have to use Layout name
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Sun Jun 24, 2012 7:25 am

ahh thanx :)
B
6
Posts: 29
Reputation: 408

Post » Sun Jun 24, 2012 10:48 am

your idea about next layout is good when we have different names of layout like my layout names : start,first,2nd,end but still its almost useless that we put plugin just for that XD just use events its much easier hehe :)
B
45
S
15
G
6
Posts: 795
Reputation: 11,935


Return to Completed Addons

Who is online

Users browsing this forum: Kcpunk666 and 4 guests