Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: 1 2 [3]   Go Down

Author Topic: Programming Q & A Round II  (Read 8513 times)

0 Members and 1 Guest are viewing this topic.
Re: Programming Q & A Round II
« Reply #40 on: March 05, 2011, 06:09:59 am »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
Yes, there's the event_perform() method:

event_perform(type, numb)

type: What kind of event this is (i.e. mouse click, step etc)
numb: What specific instance of the type (i.e. for a type of step, possible numb values are ev_step_normal, ev_step_begin or ev_step_end)

ex:

Code: [Select]
if (event_perform(ev_mouse, ev_left_button) == true)
{
//do whatever the left mouse button does
}

This is all found in the GM help file, under generating events.  You'll find all of the constants that you can use in the parameters.
Logged



i love big weenies and i cannot lie

Lunar

Former King
Re: Programming Q & A Round II
« Reply #41 on: March 05, 2011, 06:18:49 am »
  • Video Games
  • *
  • Reputation: +1/-4
  • Offline Offline
  • Gender: Male
  • Posts: 65
What I meant was, could you take something like this:



And convert everything about this object, into a script? That way you could design something in Drag and Drop, then see what it looks it in script. That would make it easy to learn the basics in Drag and Drop, then transition over to GML when you understand the basic concepts.
Logged
sup

Xiphirx

wat
Re: Programming Q & A Round II
« Reply #42 on: March 05, 2011, 06:20:18 am »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
If you look at the documentation, I believe each drag n drop item has a respective script function that it will tell you.
Logged
  • For The Swarm
Re: Programming Q & A Round II
« Reply #43 on: March 05, 2011, 04:15:54 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
Ahh, I see....Yea, this is possible.  The manual has everything, but for something quicker, you can look at this:

http://www.freewebs.com/nelsonrabon/DD2CodeConverter.zip

Your step event would be the only event you'll need to run, so that this script is able to run every frame.
Logged



i love big weenies and i cannot lie

Xiphirx

wat
Re: Programming Q & A Round II
« Reply #44 on: March 06, 2011, 11:33:48 pm »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
Whats wrong with this .htaccess RewriteRule? It isn't working :/
Code: [Select]
RewriteRule ^replays/view/(.*)/(.*)$ forum/index.php?action=replays&sa=view&rid=$1&cp=$2 [NC,L]
Logged
  • For The Swarm
Re: Programming Q & A Round II
« Reply #45 on: March 08, 2011, 03:19:19 am »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
I'm not familiar with .htaccess, but I will look into it.  What's the exact problem?
Logged



i love big weenies and i cannot lie

Xiphirx

wat
Re: Programming Q & A Round II
« Reply #46 on: March 08, 2011, 05:19:16 am »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
I actually solved it and forgot to report it here. I just had the link going to the wrong url is all :P
Logged
  • For The Swarm
Pages: 1 2 [3]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.233 seconds with 51 queries.