Gmod E2 Tutorial - EGP Touchscreen [OBSOLETE]

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

First of all, this is going to help so much! I'm making a fully functional iPhone on a server called Butt Plumbers. It consists on me using an EGP, e2, Graphics Tablet, and much wiring. This is all going to be fully destructible and have breakable glass on the front of the iPhone along with a motherboard you can find inside with all the wiring. I'm asking you to friend me on steam (kombatwaffle) and ill show you what I've have got so far. Expecting great things from you my friend!

BigDuck
Автор

Just a few things I want to state. Putting the runOnTick(1) in the if(first()) makes for neater code and even saves 1 op:P And you don't even need a touchscreen EGP has a built in function to get the player's location they are looking at on the screen. If I am not mistaken I think it is egpCursor()

flasbang
Автор

@guybidkar First song: Mt Eden - Still Alive
Second song: Perry Kingsley Swans splashdown

UltimateWire
Автор

Thanks you guys... We haven't done much lately because well.... I have no idea what to make :( Some nice request might be good although. We might do let's plays and Minecraft redstone tutorials, if that'd be appreciated.

UltimateWire
Автор

OMG I <3 THIS EPIC TUT IM YA BIGGEST FANBOI EVER! :3 BBZ!

ErforthN
Автор

@flasbang73 About the egpCursor():
EGP can find out the location of the cursor, but it can NOT find out if you're pressing the screen, witch makes it rather useless. And about that 1 OP, why bother? But what you're saying is true so :P

UltimateWire
Автор

Im new to E2 and i have no idea how everyone can create it xD Im not a good programmer, where did you learn the basics of programming because i would really wanna learn to use/create things with E2 :)

tembertambre
Автор

You want ideas heres one. I would just love a tutorial for a touchscreen thing like this for an automatic gunshop. I think a lot of people would appreciate it & I havent found a tut for it yet thx in advance

spartencrew
Автор

very nice music and good tutorial, continiue you work. Hello from Russia =)

pacik
Автор

Nice tutorial .. but now we only learnt how to use it as "mouse" .. how can we make some kind of "buttons" with wire outputs?

smeagleNL
Автор

@UltimateWire well when I do it it is just easier for me to use a for loop to check each player's aim entity and if they're pressing use even though a for loop uses a decent amount of ops

flasbang
Автор

Is it possible to make egpLine together with this to actually draw lines and make a painting?

Zoradiem
Автор

in the year of 2018... i believe egp already has touchscreen features

kriszenn
Автор

thx i alway's wondered how to do that thx :)

wilvin
Автор

what is that grid thing on the props called and where can i get it

Thewolf
Автор

Look how old this video is.. i think he stopped Gmod Long long time ago?

Woxloxh
Автор

I wrote half-paint to this. Why half? Bcs i couldn't handle index limit on one variable.

Connect DISP to egp screen
Touch to touchscreen
draw to button
clear to button
INPUT of absolute gate to touchscreen USE. AND INPUT "USE" of exp2 to absolute gate(i did this bcs something didnt want to wark like it should and it solved the problem)
also you can can add any color by changing R1 G and B

@name PAINTTOUCHSCREEN
@inputs DISP:wirelink TOUCH:wirelink Color:vector Draw Clear A3 A4 A5 USE R1 G B
@outputs Count USE Flag I
@persist R:table X1 Y1 USE1
@trigger
if(first())
{
I=0
runOnTick(1)
}

Color=vec(R1, G, B)

X=TOUCH["X", number]*512
Y=TOUCH["Y", number]*512
USE=A3
if(USE==0)
{
I=0
soundPlay(500, 5, "ambient/bumper_car_cheer3.wav")
}

if(Draw ==1)
{
DISP:egpCircle(1, vec2(X, Y), vec2(3, 3)) #Tworzenie obiektu ktorym bezie sie malowac
DISP:egpText(2, "By C.Artur", vec2(3, 3))
if(Count>100)
{
DISP:egpText(2, "Bonus:Mariusz to pala huehuehue", vec2(3, 3))
}
}
if(Clear==1)
{
R:clear()
DISP:egpClear()
}
if(USE==1)
{
DISP:egpColor(Count+2, vec(R1, G, B))


DISP:egpPos(1, vec2(X, Y))
R:pushVector2(vec2(X, Y))

Count=R:count()


if(I>1)
{
if(X1!=X||Y1!=Y)
{

DISP:egpLine(Count+2, vec2(X1, Y1), vec2(X, Y))
}
}
I=I+1
if(Count>300)
{
R:clear()


}
X1=X
Y1=Y

}

atur
Автор

wow, the music is the best part of the video, really like to know the title and author, thanks :)

blackwersus
Автор

Outdated. You need to put vec2 now and also on egpCircle you need to have 1 vec you can't have 2 or it won't work :p I know it was made years ago but whatever

darkhallow
Автор

@Soccerrockker6 #1. The easy way is to never change your settings! Kindof ;)

UltimateWire
welcome to shbcf.ru