![]() |
disable onPlayerTouchsMe()
When I want a script to do something I simply use:
PHP Code:
PHP Code:
PHP Code:
|
Quite vague, what're you wanting it to do exactly? You do know if you touch it, you touch it alot of times? I don't know of this would work...
HTML Code:
function onPlayerTouchsMe() { |
There is no "Stops Touching Me" event, depending on the situation I would do something like this:
PHP Code:
Edit: Well... Timeout, scheduleevent, same difference. |
Hmm well both won´t work.
Quote:
Or is there maybe an easier way with the moving of the player? |
Sounds like you want to disable default movement and rescript it using GraalControl.onKeyDown/onKeyUp or if (keydown(key)).
|
Quote:
|
use a timeout and use checks
PHP Code:
|
Hmm I guess I found something similiar. Didn´t test it yet but from looking around in the forums I got this idea (first off player moves from alone to the right):
PHP Code:
|
Keep in mind:
player.x is a tile-based coordinate, and getimgwidth is by pixels. 1 tile width/height = 16 pixels. therefore... tile width = (pixels / 16) |
Quote:
getimgwidth( this.image)/16 :confused: |
Quote:
|
Hehe I´m testing around with commands and so on.
|
| All times are GMT +2. The time now is 11:42 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.