Great idea for a plugin

Forum Home Forum Home > Construct 2 Development > Plugins for Construct 2
 Post Reply Post Reply
Author
383 Rep
Post Options Post Options   Quote zoniq Quote  Post ReplyReply Direct Link To This Post Topic: Great idea for a plugin
    Posted: 24 Jun 2012 at 5:32am
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?

Edited by zoniq - 24 Jun 2012 at 5:34am
Back to Top
6,647 Rep
Post Options Post Options   Quote 7Soul Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2012 at 6:54am
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
Back to Top
383 Rep
Post Options Post Options   Quote zoniq Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2012 at 7:23am
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.
Back to Top
6,647 Rep
Post Options Post Options   Quote 7Soul Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2012 at 7:24am
Sure, but instead of Layout id (doesn't exist) you have to use Layout name
Back to Top
383 Rep
Post Options Post Options   Quote zoniq Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2012 at 7:25am
ahh thanx :)
Back to Top
7,562 Rep
Post Options Post Options   Quote zsangerous Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2012 at 10:48am
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 :)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down