The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a proper scripting loop
gosseyn Offline
Member

Posts: 63
Threads: 7
Joined: Sep 2010
Reputation: 1
#1
a proper scripting loop

Hi!, it's me and my loop again!

So, i really need to know how to properly script a loop, a loop that waits for player inputs. For example, let's say i want to add impulse to an object from the moment the player collides with area1 until the moment he collides with area2, how would i do that ? Or, better, how would i do if i want the loop to be effective at map start ?

I didn't came here without first trying myself with the knowledge i have, but i must admit i made the game crash each time i tried.

I don't need to know about while or do, or for, but i want to know where to place things. Where to place the loop? Inside a function i make or inside OnEnter or Onstart? I tried both, with no success. I know i need a break condition, and i have one, but still the game crashes.

So, please help me.
09-22-2010, 05:42 PM
Find


Messages In This Thread
a proper scripting loop - by gosseyn - 09-22-2010, 05:42 PM
RE: a proper scripting loop - by jens - 09-22-2010, 06:09 PM
RE: a proper scripting loop - by gosseyn - 09-22-2010, 06:19 PM
RE: a proper scripting loop - by gosseyn - 09-23-2010, 02:02 PM
RE: a proper scripting loop - by Pandemoneus - 09-23-2010, 02:47 PM
RE: a proper scripting loop - by gosseyn - 09-23-2010, 02:57 PM
RE: a proper scripting loop - by jens - 09-23-2010, 02:58 PM



Users browsing this thread: 1 Guest(s)