Great idea for a plugin Forum Home > Construct 2 Development > Plugins for Construct 2 |
Post Reply
|
| Author | |
Post Options
Quote Reply
Topic: Great idea for a pluginPosted: 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 |
|
![]() |
|
Post Options
Quote Reply
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 |
|
![]() |
|
Post Options
Quote Reply
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. |
|
![]() |
|
Post Options
Quote Reply
Posted: 24 Jun 2012 at 7:24am |
|
|
Sure, but instead of Layout id (doesn't exist) you have to use Layout name
|
|
![]() |
|
Post Options
Quote Reply
Posted: 24 Jun 2012 at 7:25am |
|
|
ahh thanx :)
|
|
![]() |
|
Post Options
Quote Reply
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 :)
|
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |