QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

lua pixel help

This is a discussion on lua pixel help within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; i want it so if my cursor goes over a certain pixel a pic loads thx...

Reply
 
LinkBack Thread Tools
Old 10-25-2005, 04:58 PM   #1

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Red face lua pixel help

i want it so if my cursor goes over a certain pixel a pic loads thx
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 05:16 PM   #2
 
sumpaintballer41's Avatar
 
Join Date: Jul 2005
Location: Ware, MA
Posts: 868
Trader Feedback: 0
Default

Hmm, i think theres an If and then statement and mouseover somewhere, i dunno, haha im a newbie coder but it has something to do with that...IM gunna give it a shot in the dark *DO NOT USE THIS CODE IT IS A RANDOM ATTEMPT*

{If mouseover(0,0);
(picture)load.image(0,0, picture);
}
__________________
Cover your eyes and run...
gmansixfo= STEPMANIA LEGEND!!
Halo2 Gamertag~PSPH4X0R

7/17/06
~The Day My PSP Almost Died~
Thank you
GrandTheftAutoJunkie
sumpaintballer41 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 05:54 PM   #3

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

thx anway but waitin 4 rite 1 also how do i sculpt a picture so its not square
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 05:59 PM   #4

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Angry

sry bout short questions my fired up crashs alot during typing
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 06:36 PM   #5
 
sumpaintballer41's Avatar
 
Join Date: Jul 2005
Location: Ware, MA
Posts: 868
Trader Feedback: 0
Default

I figured i might send someone on the right course with it..I just experiment with my own..I havent really defined my own codes yet
__________________
Cover your eyes and run...
gmansixfo= STEPMANIA LEGEND!!
Halo2 Gamertag~PSPH4X0R

7/17/06
~The Day My PSP Almost Died~
Thank you
GrandTheftAutoJunkie
sumpaintballer41 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 07:09 PM   #6
 
st.jimmy's Avatar
 
Join Date: Aug 2005
Location: MD | Fries: 13
Posts: 1,019
Trader Feedback: 0
Default

Quote:
Originally Posted by sumpaintballer41
Hmm, i think theres an If and then statement and mouseover somewhere, i dunno, haha im a newbie coder but it has something to do with that...IM gunna give it a shot in the dark *DO NOT USE THIS CODE IT IS A RANDOM ATTEMPT*

{If mouseover(0,0);
(picture)load.image(0,0, picture);
}
looks like actionscript to me, so yeah, dont even try that script.
st.jimmy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 07:26 PM   #7
 
sumpaintballer41's Avatar
 
Join Date: Jul 2005
Location: Ware, MA
Posts: 868
Trader Feedback: 0
Default

haha yeah i know its not the right one..Im a newbie coder and i told him that it was unusable. I just thought i might spark a memory bank or two
__________________
Cover your eyes and run...
gmansixfo= STEPMANIA LEGEND!!
Halo2 Gamertag~PSPH4X0R

7/17/06
~The Day My PSP Almost Died~
Thank you
GrandTheftAutoJunkie
sumpaintballer41 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 07:46 PM   #8
 
Sonicadvance1's Avatar
 
Join Date: Jul 2005
Posts: 28
Trader Feedback: 0
Default

not sure about lua much but i'll lead you on the correct path..maybe

warning,below code is not real code,just to show a sample way todo something
Code:
if(button.x==clicked){
int x=getx();
int y=gety();
drawpixture(x,y);
}
or maybe if you need the pixel to be a certian color
Code:
if(button.x==clicked){
int color=getpixel(x,y);
drawpixel(color,X.coord,Y.coord);
}
the drawpixel function choosing the correct picture within its function with the data supplied.
Sonicadvance1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 07:53 PM   #9
 
Join Date: Sep 2005
Posts: 18
Trader Feedback: 0
Default

pretty easy

if x1=x2 then
if y1=y2 then
sceen:blit(0, 0, picture)
end
end
officiallypoor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 08:01 PM   #10
 
sumpaintballer41's Avatar
 
Join Date: Jul 2005
Location: Ware, MA
Posts: 868
Trader Feedback: 0
Default

Haha, yeaa.....I SUCK!
__________________
Cover your eyes and run...
gmansixfo= STEPMANIA LEGEND!!
Halo2 Gamertag~PSPH4X0R

7/17/06
~The Day My PSP Almost Died~
Thank you
GrandTheftAutoJunkie
sumpaintballer41 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2005, 10:01 PM   #11

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Red face

i have my friends pik as backround and a cursor an i want to poke him wit my cursor so hebleeds n i kno how just need to kno how to load a image win a go over a pixel i choose
__________________

Last edited by SG57; 10-25-2005 at 10:07 PM..
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-27-2005, 01:53 PM   #12
 
sumpaintballer41's Avatar
 
Join Date: Jul 2005
Location: Ware, MA
Posts: 868
Trader Feedback: 0
Default

HAHAHAHAHAHAHAHAHAHAHAHAH AHA....does your friend know about this program>!??!!

*Edit* FUnny you call him your 'Friend' hahaha
__________________
Cover your eyes and run...
gmansixfo= STEPMANIA LEGEND!!
Halo2 Gamertag~PSPH4X0R

7/17/06
~The Day My PSP Almost Died~
Thank you
GrandTheftAutoJunkie
sumpaintballer41 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
lua , pixel

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 11:46 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us