1 registered members (TipmyPip),
18,449
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
PS3 Controller and Event_action problem...
#224987
09/02/08 12:55
09/02/08 12:55
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
OP
Expert
|
OP
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
Hi.. I wanted to ask if someone has anything to use a PS3 Controller ( USB cable ) with a lite-c project.
No need in bluetooth or Infra-red.. just the button settings..
Second problem i hvae:
How i´m able to activate another entity via: touching it, activate via Enter/Space key???
Last edited by xXReapeRXx; 09/02/08 16:47.
|
|
|
Re: PS3 Controller and Event_action problem...
[Re: DJBMASTER]
#225056
09/02/08 17:57
09/02/08 17:57
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
OP
Expert
|
OP
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
Yes.. That´s a function in Rpg maker...
If you touch an Event, it´ll be activated.. Player hits Entitie ^^
Ant the keypress function only works if the player stands near the entity ( distance has to be variable via a skill ).
Ps.: If i understand the Helpfile correct, EVENT_TOUCH is only for mouse touching.. But i want the player-entites to touch the event-entity
Last edited by xXReapeRXx; 09/02/08 20:07.
|
|
|
Re: PS3 Controller and Event_action problem...
[Re: Espér]
#225161
09/03/08 05:03
09/03/08 05:03
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
hmm ok...
function activate_me() { if (event_type == EVENT_IMPACT) { if(key_space) { //activate entity } } }
action entity() { my.emask |= ENABLE_IMPACT; my.event = activate_me; }
now when the player collides with your chosen entity, it will run activate_me. If you press space while near the entity you can then run some other code.
Last edited by DJBMASTER; 09/03/08 05:05.
|
|
|
Re: PS3 Controller and Event_action problem...
[Re: DJBMASTER]
#225266
09/03/08 18:20
09/03/08 18:20
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
OP
Expert
|
OP
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
ok.. am i able to setup a max distance to the event-entity, wich is activated via key-hit??? That´s the most important point... because some events are not reachable fro the palyer position ( shopkeepers..etc.. ) The distance is skill10 of the event-entity
*yes..a rpg engine*
Last edited by xXReapeRXx; 09/03/08 18:26.
|
|
|
Re: PS3 Controller and Event_action problem...
[Re: Espér]
#225932
09/06/08 19:12
09/06/08 19:12
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
ermm i'd just use vec_dist in a while loop and check if the chosen key is pressed. try...
while(player!=NULL) // while player pointer is not empty.
{
if(vec_dist(me.x,point.x)<100) // are you closer than 100 quants?
{
if(key_space) { execute something here!!! } // has space been pressed?
}
wait(1);
}
Maybe that will work.
Last edited by DJBMASTER; 09/06/08 19:15.
|
|
|
Re: PS3 Controller and Event_action problem...
[Re: DJBMASTER]
#225937
09/06/08 19:38
09/06/08 19:38
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
OP
Expert
|
OP
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
ok..
some Problems
If i´m close to the event, i press space. No beep() is player ( in the called function ). And the palyer stucks, but is animated and the direction is set correct. but he can´t move
if i press the key away from an event, nothing happens. if i then press any key, the camera is set to 0,0,0... and won´t move anymore..
last problem... With your code, the player has to be on the same X,Y as the Event.. i don´t think that this is possible in a free 3D game all the time... So i need to ask, if the Event is in a specified radius in front of the player..
Last edited by xXReapeRXx; 09/06/08 19:48.
|
|
|
Re: PS3 Controller and Event_action problem...
[Re: Espér]
#226790
09/11/08 08:51
09/11/08 08:51
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
OP
Expert
|
OP
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
uhm.. is there nobody who has an idea???  That´s direction-right of the sprite i use for debug.. Ok.. here for example: This is what i´ve now:  That´s the problem:  And that´s hwat i want:  The angle of view has to be variable via player.skill99 And the range of view via player.skill98
Last edited by xXReapeRXx; 09/11/08 08:56.
|
|
|
|