[project1dev] Re: Project1 - SVN Update 780

  • From: Alan Wolfe <alan.wolfe@xxxxxxxxx>
  • To: project1dev@xxxxxxxxxxxxx
  • Date: Mon, 31 May 2010 20:07:09 -0700

i think for the rock collision problem you might have better luck trying it
a different way because the touch function only fires off in reaction to the
player moving and touching an object, not another object bumping into the
player.

what i would do is set a property on the player like "IsPlayer" to 1, and
then just do a rectangle query or maybe see if it was less than some
distance from the player and if so do a hit.

hows that sound to you?
On Mon, May 31, 2010 at 7:58 PM, Alan Wolfe <alan.wolfe@xxxxxxxxx> wrote:

> I checked it out and it's an order of operations problem!
>
> You are trying to get the model by nickname before the level 1 geometry has
> been loaded (check out the order of the dofiles)
>
> anyhow, what i would do to fix it would be to make an EnemiesInit()
> function in enemies.lua, and call it in level1\index.lua where it calls
> TownInit
>
> I had the same issue with the town building stuff so had to set it up that
> way :P
>   On Mon, May 31, 2010 at 7:19 PM, Alan Wolfe <alan.wolfe@xxxxxxxxx>wrote:
>
>> ill check it out (:
>>
>>
>> On Mon, May 31, 2010 at 7:16 PM, Apache User <
>> dhapache@xxxxxxxxxxxxxxxxxxx> wrote:
>>
>>> User:korgath
>>>
>>> Message: further implementing reading in enemies from the editor
>>> --created enemies.lua for taking care of enemy spawning stuff
>>>
>>>
>>> So here's my problem. The debuglog is telling me that it can't find
>>> TrollHut1 that I created in the editor. Not sure what I'm doing wrong
>>>
>>> PS I don't think collision detection with the player works. See Rock.lua
>>>
>>> <Files Changed>
>>> U   ActRaiser/Scripts/Enemies/OverWorld/Rock.lua
>>> U   ActRaiser/Scripts/GameOverworld/Level1/index.lua
>>> A   ActRaiser/Scripts/GameOverworld/enemies.lua
>>>
>>>
>>> ==============================
>>> Project 1 Dev mailing list
>>> to unsubscribe, please send an email request to demofox@xxxxxxxxxxx
>>> Project 1 website: http://project1.demofox.org
>>> Project 1 SVN repository: http://pyotek.com/project1
>>>
>>
>>
>

Other related posts: