Search found 15 matches

by mbecerra
Sun Jul 29, 2012 8:36 am
Forum: Coding Questions
Topic: Slot Machine Tutorial
Replies: 0
Views: 604

Slot Machine Tutorial

Does anyone have a link to a tutorial for creating a simple slot machine game in PureBasic? If not they advice would be very helpful. I want to create a full screen game, and not a form that displays numbers randomly inside a label. Any assistance would be greatly appreciated.

Sincerely,

The ...
by mbecerra
Fri Dec 31, 2010 5:05 pm
Forum: Coding Questions
Topic: Detect Editor Gadget Modified
Replies: 3
Views: 1524

Detect Editor Gadget Modified

I am trying to create a simple text editor and am having a bit of difficulty. I want to check to see if the text in the editor gadget was modified and if so set a flag. I tried to use KeyboardPushed(#PB_KEY_ALL) but was told i couldn't since that is for games and multimedia, and required OpenScreen ...
by mbecerra
Thu Dec 23, 2010 7:04 pm
Forum: Game Programming
Topic: Collision Detection
Replies: 1
Views: 1782

Collision Detection

I am using purebasic's drawing functions to draw my game objects. Right now both the ball and paddle are boxes. How would I go about adding collision detection so that i can perform an action when the ball and paddle collide? Any assistance in this matter would be greatly appreciated.

PureOoze
by mbecerra
Fri Nov 19, 2010 5:47 pm
Forum: Coding Questions
Topic: Windowed Screen MouseRelease
Replies: 4
Views: 1700

Re: Windowed Screen MouseRelease

There is no need for an additional Window.

Just add the following line to the code, right after you release the keyboard:
SetForegroundWindow_(GetDesktopWindow_()) Greetz, PL.

Is this a windows specific function cause i can't seem to find it in the purebasic documentation at all. Hi, I think it ...
by mbecerra
Thu Nov 18, 2010 4:17 pm
Forum: Coding Questions
Topic: Windowed Screen MouseRelease
Replies: 4
Views: 1700

Windowed Screen MouseRelease

I have this very simple example that opens a Windowed screen. When the screen is opened the mouse is captured to the screen. When the user presses F12 the mouse is released. I added a ActivateWindow event so when the user clicks on the game window, the mouse is recapture. However for some reason ...
by mbecerra
Mon Jul 26, 2010 9:16 pm
Forum: Coding Questions
Topic: How to go about it
Replies: 5
Views: 1099

Re: How to go about it

Needn't be a problem really.

What you could do is when you display the 'password' window, simply disable the main window so the user is forced to deal with the password window - either entering a password or closing the window etc. It is a matter of personal preference whether you then use a ...
by mbecerra
Mon Jul 26, 2010 7:30 pm
Forum: Coding Questions
Topic: How to go about it
Replies: 5
Views: 1099

How to go about it

I am planning to create a Internet cafe software and need advice. In my program if the user tries to close the window, it asks the user for a password via inputrequester. However it isn't secure as the password is being shown in full text. I can open a new window asking for the via the password text ...
by mbecerra
Thu May 06, 2010 9:48 pm
Forum: Coding Questions
Topic: Basic 3D Shapes
Replies: 2
Views: 741

Basic 3D Shapes

Does the Engine3D Library come with commands for creating simple 3D shapes like box,cube,sphere ec? It would be very useful since I wouldn't need to purchase a 3D modeler just to create simple 3D meshes. Any help in this matter is greatly appreciated.

Sincerely,

PurePong
by mbecerra
Tue Oct 21, 2008 3:38 am
Forum: Off Topic
Topic: Coisidence ?
Replies: 7
Views: 1840

So how did you both manage to get paypal and the script the validate the transaction?
by mbecerra
Mon Oct 06, 2008 4:32 pm
Forum: Off Topic
Topic: Coisidence ?
Replies: 7
Views: 1840

Coisidence ?

I remember a long time ago asking about the purebasic members login scripts and how i could obtain a copy, to be told that i would have to make my own. However i have found a site which uses the same scipt as the one on the purebasic site. Is it pure coisidence that they are using the same scripts i ...
by mbecerra
Mon Aug 07, 2006 7:32 pm
Forum: Coding Questions
Topic: Classes
Replies: 6
Views: 3120

Classes

Is it possible to do "classes" in PB similar to C++? That is:


Class Paddle {
Private:
x_position;
y_position;

public:
set_x_position(new_x_position);
set_y_position(new_y_position);

}


Then somewhere else in another file or another part of the source code:


Paddle::set_x_position(new_x ...
by mbecerra
Wed Mar 09, 2005 4:54 pm
Forum: Coding Questions
Topic: Timer in PB?
Replies: 4
Views: 1849

ok thank you.
by mbecerra
Tue Mar 08, 2005 6:09 pm
Forum: Coding Questions
Topic: Timer in PB?
Replies: 4
Views: 1849

Timer in PB?

I would like to know if PB has a timer function for executing code repeatidly after a certain amount of time has eclapsed.
Example:

This code is in Liberty BASIC for demestration purposes only!

//create variable to hold how long the user has used the program for this scession
time1 = 0
//create ...
by mbecerra
Tue Mar 08, 2005 5:41 pm
Forum: Coding Questions
Topic: Registration System
Replies: 2
Views: 1175

Re: Registration System

Does anyone know if someone created a registration system for developers creating apps in PB? A registration system is when your app is allowed to run a certin amount of days after which an unlock code is required for continued use. I know GameMaker has one abit very old. I just wanted to know ...
by mbecerra
Mon Mar 07, 2005 9:25 pm
Forum: Coding Questions
Topic: Registration System
Replies: 2
Views: 1175

Registration System

Does anyone know if someone created a registration system for developers creating apps in PB? A registration system is when your app is allowed to run a certin amount of days after which an unlock code is required for continued use. I know GameMaker has one abit very old. I just wanted to know ...