Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
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 Offline OP
Expert
Espér  Offline 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.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: PS3 Controller and Event_action problem... [Re: Espér] #225047
09/02/08 17:26
09/02/08 17:26
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
EVENT_TOUCH ?

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 Offline OP
Expert
Espér  Offline 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.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
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 Offline
Serious User
DJBMASTER  Offline
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 Offline OP
Expert
Espér  Offline 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.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: PS3 Controller and Event_action problem... [Re: Espér] #225930
09/06/08 19:02
09/06/08 19:02
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
any idea??


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
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 Offline
Serious User
DJBMASTER  Offline
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...

Code:
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 Offline OP
Expert
Espér  Offline 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.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
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 Offline OP
Expert
Espér  Offline 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.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: PS3 Controller and Event_action problem... [Re: Espér] #227892
09/16/08 18:05
09/16/08 18:05
Joined: Aug 2008
Posts: 133
Sweden, Stockholm
E
Enduriel Offline
Member
Enduriel  Offline
Member
E

Joined: Aug 2008
Posts: 133
Sweden, Stockholm
hmm, try USE_BOX in the c_trace, that makes the shop keepers bounding box size as the trace.

Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1