simple code need

Posted By: 1525252

simple code need - 04/17/14 20:04

Can You create a simple lit-c code for me? If this request is not too hard or time consuming
please help, because i am total noob in this area.


1. mouse_over konj.mdl = show panel "info1 panel" on top of model
(hide panel when mouse is not over model). This panel must
be for konj.mdl only, not for other model in the scene.

2. mouse_rightclick konj.mdl = show panel "selection1_panel" at right side of model.
Panel have one button, when left click on button = replace konj.mdl with ptica.mdl. Right click on ptica.mdl = show panel "selection1_panel" again.
(hide panel when mouse clicked enywhere else in scene except this panel)
This panel must be for konj.mdl and ptica.mdl only, not for any other model in the scene.


I posted similar question in Game Development » User Requests, with old code that has problem.
Maybe wrong forum? Or here? Sorry if i posted in wrong section, and for poor eglish.Cheers!

q: Is there a visual script/code editor like in udk for noob ppl like me, with drag `n drop comand system?
Posted By: Kartoffel

Re: simple code need - 04/18/14 09:13

just my advice, but you'll hear the same thing from a lot of people here:
learn lite-c, it's damn easy.

afaik there's no visual coding system for lite-c, however, this would strongly limit Acknex's capabilities.
Doing it yourself is always better (as long as you know what you're doing)
Posted By: 1525252

Re: simple code need - 04/18/14 20:51

Kartoffel,
Thanks for the tip! It` true, it`s so GOD DAMN EASY, with help of EXCELLENT EHPLAINED LITE-C BEGINER TUTTORIAL HERE !!!

I started from scratch (blank script) and compare it with old code (posted here on other thread) and lit-c tuttorial of course.
So far, i made 2 pannels for 2 diferent models with commands for each panel (ent_morph if button clicked...). Each panel react
only on interaction with corespond model. Great! If something goes wrong i`ll search the help here. As for the matter of my
other post with old script... admin, delete it please.

I`ll recomend this engine to all my friends for a quick and easy visualisation of their projects. The idea and art commponent
are the most important for multimedia content creation.The tools for putting that art in interactive "box" must be easy!

P.S. My moto:
First try everything else, then read the tuttorial! grin

Q: what is the max number of faces,vertices, tex.vertices per one model (mdl) in new A8?
( do not consider fact that highpoly models are heavier for engine, i need tech.info only)
Posted By: Kartoffel

Re: simple code need - 04/18/14 22:24

afaik ~65k polys per model
Posted By: 1525252

Re: simple code need - 04/19/14 00:02

Limit isn`t changed (from earlier versions) but it`s ok.
Thanks for info bro!
I wish this engine go in "ANDROID watters" in future.
3dgs + native publish for android platform in one click,
would be booooom in market of software development
(my opinion... 3dgs will be the best one)
Posted By: Aku_Aku

Re: simple code need - 04/19/14 12:10

Maybe i could help you, but i need more detailed specification.
What is your intend with these codes? What is the expected behaviour of them?
Where should fit them? I mean, there is an environment of the code, for example they will be called from somewhere.
So, only two or three sentences are not enough (for me).
Posted By: 1525252

Re: simple code need - 04/19/14 18:46

I made my script and it`s functional allready .It`s veri simple one, with vey basic stucture.But it`s clean. and contain only parts that i fully understand.
Of course, i want to learn more advanced things. and thank You Aku_Aku for offering help.

Can you show me the code example, how create panel wich is made of mdl`s? One mdl for background, and 3 "3d letter" buttons.
I know how to make them but i want to learn next:
Bounding panel to character in game and follow that char.(like panels in some games who are on top of chaeracter head)
Bound letters to the panel...
I presume it is something like: rightclick on character ent_create at xyz+(character position xyz)...then some trigger = entity (panels) disapear.

Dynamic positioning of entity who is atached and follow another ent.(and detached when i need to) is what i want to learn.

2. How to ineract with only small portions of character( when mouse_over head = some triger, animation start and continue to end )
Is it posible to invisible box atached to head?
Give me some codes exsample, then i will learn and adopt theese for my needs.

Thank you!

P.s.
That is not included in the begining workshop tuttorial! laugh
( most of it )
Posted By: DLively

Re: simple code need - 04/20/14 02:04

1. have a look at this for attaching panels to ents: http://www.conitec.net/beta/avec_to_screen.htm

2. create an invisible cube at the NPC's head, and have it trigger the panel rather than the NPC.
Posted By: 1525252

Re: simple code need - 04/20/14 06:13

Tnx
P.S.
For all Christians happy Easter day! laugh
Posted By: Aku_Aku

Re: simple code need - 04/20/14 09:16

Dear 1525252!
I have found the following threads here in the forum (i can imagine there is an AUM that deals with the same subject).

Panel Over Entity
Entity Panel
A 3D entity MDL as a Panel "life meter"
I hope some of them will help you.
Posted By: 1525252

Re: simple code need - 04/20/14 13:58

Tnx bro, i`ll check.
© 2024 lite-C Forums