Jump to content


Photo

Section of script


  • Please log in to reply
1 reply to this topic

#1 Darkadin

Darkadin

    GMC Member

  • GMC Member
  • 89 posts

Posted 26 February 2012 - 08:09 PM

Hello, im trying to make a pretty big game and im kind of making it section by section a lil here move over here and what not, well im finding it hard to merge them all. I remember seeing a post a few years ago something along the lines of calling a section of a script but i cant seem to find it, the reason im looking is because i thought it would be nice and easy if i could merge all my scripts into one, and make each object that uses it call just the section they are needing. Anyone know of how to do this or remember the post?

Edited by Darkadin, 26 February 2012 - 08:09 PM.

  • 0

#2 YellowAfterlife

YellowAfterlife

    GMC Member

  • Global Moderators
  • 3493 posts
  • Version:GM:Studio

Posted 26 February 2012 - 08:41 PM

You can:
* Create separate scripts
* Add a switch statement in script to choose part of script to execute.
* Use event_peform_object to launch events that are define in other type of object
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users