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
[SOLVED] If 'something' collides with area function
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
[SOLVED] If 'something' collides with area function

Yea so i have a bookshelf in one room, with 3 empty spaces.


In another room there is a lot of books spread out.

I want the player to take three books, from all of those books on the floor, and put them into the three spaces.

So there has to be a script in the bookshelf which adds and subtracts 1, for every book colliding and not-colliding with it. And this collide-area has to have a certain script that makes the script trigger if 'something' collides with it.

Nothing else can collide with the script, because the spaces are just as small as the books are.

Does this kind of script exist?

I searched a bit for it, and i got that i could take the books names and make a 'for' script.

Is there an easier way around?

Trying is the first step to success.
(This post was last modified: 05-27-2012, 11:24 PM by FlawlessHappiness.)
05-27-2012, 07:04 PM
Find


Messages In This Thread
[SOLVED] If 'something' collides with area function - by FlawlessHappiness - 05-27-2012, 07:04 PM



Users browsing this thread: 1 Guest(s)